From: Alan K. <jyt...@xh...> - 2008-01-14 14:54:15
|
[Charlie] > The problem is that Jython 2.2 and on can't make > a channel till it connects either through listen, accept or connect, > and since the channel is used as fileno, it doesn't have a fileno till > it connects. asyncore is expecting fileno to always be defined, so it > adds None to the map as the file descriptor on unconnected Jython > sockets. I've attached a patch for asyncore that delays adding fileno > to the map until a connection is made, and it gets test_asynchat to > pass at least. Mind giving it a shot on your code? NIce one, Charlie. What ou say makes sense; I'll take a look at your changes. I'm currently working on updating UDP sockets to use the java.nio APIs instead of java.net APIs, so that this priority 9 bug will go away http://sourceforge.net/tracker/index.php?func=detail&aid=1782548&group_id=12867&atid=112867 When I've finished that, I'll move onto asyncore and asynchat. Sorry I've been out of the loop; a combination of lots of travel, extreme busy-ness and a little illness has kept me occupied for the last week. Regards, Alan. |