[CherryPy] #971: no_delay on Jython breaks wsgiserver 3.1

0 views
Skip to first unread message

CherryPy

unread,
Nov 9, 2009, 4:03:38 PM11/9/09
to cherrypy...@googlegroups.com
#971: no_delay on Jython breaks wsgiserver 3.1
---------------------------+------------------------------------------------
Reporter: guest | Owner: fumanchu
Type: defect | Status: new
Priority: high | Milestone:
Component: CherryPy code | Keywords:
---------------------------+------------------------------------------------
wsgiserver 3.1 does not work with Jython because Jython does not support
setsocketoption TCP_NODELAY for a server socket. It only allows clients to
set TCP_NODELAY after connection. Some discussion here.
http://bugs.jython.org/issue1309

Suggested fix: In wsgiserver/__init__.py replace

nodelay = True

with

import platform
nodelay = not(platform.system()=='Java')

Massimo

--
Ticket URL: <http://www.cherrypy.org/ticket/971>
CherryPy <http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework

CherryPy

unread,
Nov 10, 2009, 2:01:07 AM11/10/09
to cherrypy...@googlegroups.com
#971: no_delay on Jython breaks wsgiserver 3.1
---------------------------+------------------------------------------------
Reporter: guest | Owner: fumanchu
Type: defect | Status: closed
Priority: high | Milestone:
Component: CherryPy code | Resolution: duplicate
Keywords: |
---------------------------+------------------------------------------------
Changes (by lawouach):

* resolution: => duplicate
* status: new => closed

Comment:

duplicate of #949
Reply all
Reply to author
Forward
0 new messages