Issue438297

classification
Title: SimpleHTTPServer does not work
Type: Severity: normal
Components: Library Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: bckfnn Nosy List: bckfnn
Priority: normal Keywords:

Created on 2001-07-03.18:09:45 by anonymous, last changed 2001-11-03.17:12:57 by bckfnn.

Messages
msg338 (view) Author: Nobody/Anonymous (nobody) Date: 2001-07-03.18:09:45
Calling jython.bat lib/SimpleHTTPServer.py results in 
the following error message:

Traceback (innermost last):
  File "lib/SimpleHTTPServer.py", line 198, in ?
  File "lib/SimpleHTTPServer.py", line 194, in test
  File "H:\PROGRA~1\Java\jython-2.0
\lib\BaseHTTPServer.py", line 475, in test
  File "H:\PROGRA~1\Java\jython-2.0
\lib\SocketServer.py", line 168, in __init__
  File "H:\PROGRA~1\Java\jython-2.0
\lib\BaseHTTPServer.py", line 94, in server_bind
  File "H:\PROGRA~1\Java\jython-2.0
\lib\SocketServer.py", line 178, in server_bind
AttributeError: module 'socket' has no 
attribute 'SOL_SOCKET'

To work around this error set 

allow_reuse_address = 0

in class BaseHTTPServer.HTTPServer.


msg339 (view) Author: Finn Bock (bckfnn) Date: 2001-11-03.16:54:56
Logged In: YES 
user_id=4201

Added as test332.py
msg340 (view) Author: Finn Bock (bckfnn) Date: 2001-11-03.17:12:57
Logged In: YES 
user_id=4201

Fixed in socket.py: 1.12;
History
Date User Action Args
2001-07-03 18:09:45anonymouscreate