Message3500
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. |
|
Date |
User |
Action |
Args |
2008-09-13 11:58:41 | amak | set | messageid: <1221307121.51.0.670310225008.issue1121@psf.upfronthosting.co.za> |
2008-09-13 11:58:41 | amak | set | recipients:
+ amak, glyph |
2008-09-13 11:58:41 | amak | link | issue1121 messages |
2008-09-13 11:58:40 | amak | create | |
|