Message4691

Author amak
Recipients Christof, amak
Date 2009-05-17.20:49:12
SpamBayes Score 1.0991975e-09
Marked as misclassified No
Message-id <1242593353.78.0.622453143589.issue1347@psf.upfronthosting.co.za>
In-reply-to
Content
This error is happening because webpy is trying to set the socket option
TCP_NODELAY on a server socket, which is not supported on java, and thus
jython.

I have checked in a change to error reporting for this situation, so
that the error message gives the names of the option constants involved
in the error, rather than the symbolic constants, which were obviously
confusing.

The change was made at revision 6354. You can download the updated
version from 

http://fisheye3.atlassian.com/browse/jython/trunk/jython/Lib/socket.py

Looking at the webpy code, I see that the option is set on line 1610 of
file "web/wsgiserver/__init__.py" of the current release. This is only
done if the "nodelay" option is set true. So if you set that option to
False, then the TCP_NODELAY option is not set, thus preventing this problem.

You may want to report this as a bug to the webpy folks, since
unsupported socket options on jython give an exception.
History
Date User Action Args
2009-05-17 20:49:13amaksetmessageid: <1242593353.78.0.622453143589.issue1347@psf.upfronthosting.co.za>
2009-05-17 20:49:13amaksetrecipients: + amak, Christof
2009-05-17 20:49:13amaklinkissue1347 messages
2009-05-17 20:49:12amakcreate