Message3500

Author amak
Recipients amak, glyph
Date 2008-09-13.11:58:37
SpamBayes Score 0.0015256456
Marked as misclassified No
Message-id <1221307121.51.0.670310225008.issue1121@psf.upfronthosting.co.za>
In-reply-to
Content
Although this is not obvious when one is using the C/python socket API,
server sockets do not have read and write channels. 

Server sockets can only accept incoming connections; it is those
'accept'ed connections that have read and write channels that can be
'shutdown'. The java.net.ServerSocket API makes this explicitly clear;
there are no I/O operations on such objects.

http://java.sun.com/j2se/1.5.0/docs/api/java/net/ServerSocket.html

But the sockets returned from the accept call do

http://java.sun.com/j2se/1.5.0/docs/api/java/net/Socket.html

So strictly speaking, this is not a bug; it is an invalid operation.

Nonetheless, the jython socket module should be fixed so that either 

1. A more meaningful error is raised, or
2. The call simply passes silently.

I will be checking in a fix today.
History
Date User Action Args
2008-09-13 11:58:41amaksetmessageid: <1221307121.51.0.670310225008.issue1121@psf.upfronthosting.co.za>
2008-09-13 11:58:41amaksetrecipients: + amak, glyph
2008-09-13 11:58:41amaklinkissue1121 messages
2008-09-13 11:58:40amakcreate