Issue #1129 invalid

Jython 2.5.2 + CherryPy 3.2.2 : socket.error: (92, "Socket option 'TCP_NODELAY' (level 'IPPROTO_TCP') not supported on socket

Anonymous created an issue

{{{

!python

from cherrypy import wsgiserver import sys import os import django.core.handlers.wsgi

if name == "main": sys.path.append('/home/swilcox/projects') os.environ['DJANGO_SETTINGS_MODULE'] = 'dash2.settings'

app = django.core.handlers.wsgi.WSGIHandler()
server = wsgiserver.CherryPyWSGIServer( 
    ('127.0.0.1', 8080),
    app,
    server_name='localhost',
    numthreads = 20,
)

try:
    server.start()
except KeyboardInterrupt:
    server.stop()

}}}

When I run this code under Jython, I get the following traceback.

Traceback (most recent call last): File "test.py", line 19, in <module> server.start() File "test.py", line 19, in <module> server.start() File "/home/dsk/jython2.5.2/Lib/site-packages/cherrypy/wsgiserver/wsgiserver2.py", line 1828, in start self.socket.listen(self.request_queue_size) File "<string>", line 1, in listen File "/home/dsk/jython2.5.2/Lib/socket.py", line 932, in listen self._config() File "/home/dsk/jython2.5.2/Lib/socket.py", line 932, in listen self._config() File "/home/dsk/jython2.5.2/Lib/socket.py", line 893, in _config self.sock_impl.setsockopt(level, optname, self.pending_options[ (level, optname) ]) File "/home/dsk/jython2.5.2/Lib/socket.py", line 292, in setsockopt raise error(errno.ENOPROTOOPT, "Socket option '%s' (level '%s') not supported on socket(%s)" % (_constant_to_name(option), _constant_to_name(level), str(self.jsocket))) socket.error: (92, "Socket option 'TCP_NODELAY' (level 'IPPROTO_TCP') not supported on socket(ServerSocket[addr=/127.0.0.1,localport=8080])")

....

$ java -version java version "1.6.0_23" OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre11-0ubuntu1.11.10.1) OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)

$ uname -a Linux ubuntu 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

Comments (2)

  1. Log in to comment