From: SourceForge.net <no...@so...> - 2011-08-20 09:57:25
|
Bugs item #3394732, was opened at 2011-08-19 20:55 Message generated for change (Comment added) made by rmax You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=3394732&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 25. Channel System Group: development: 8.6b2 Status: Open Resolution: None Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Reinhard Max (rmax) Summary: socket -server Initial Comment: Ubuntu based OS, 32 bit, kernel 2.6.35-30, ActiveState 8.6b2 binary. Starting with the latest beta, my "socket -server" code stopped working in my code. It appears that setting the server socket encoding to any value, ie "-encoding binary" or even to the value it is currently set to stops the server from responding. Initially I thought it was the -blocking setting since it was the only setting I was changing from it's default value but after I started experimenting with the settings by changing each one individually, the culprit turned out to be -encoding. ---------------------------------------------------------------------- >Comment By: Reinhard Max (rmax) Date: 2011-08-20 11:57 Message: Some strace debugging revealed that after fconfigure -encoding, the first (or the only in case there is just one) file descriptor that underlays a [socket -server] gets skipped from the select() call that results from [update] or [vwait]. If there is more than one actual socket under the hood of the server channel (e.g. when the socket listens on both, IPv4 and IPv6), the second socket in the list (the IPv6 one in my case) still works after the [fconfigure]. ---------------------------------------------------------------------- Comment By: Donal K. Fellows (dkf) Date: 2011-08-20 10:08 Message: I've attached the contents of the paste as a file so that they don't get lost in the future. ---------------------------------------------------------------------- Comment By: https://www.google.com/accounts () Date: 2011-08-20 07:59 Message: The previous pastebin expires in one day. This is a copy of it that does not expire, in case someone needss to see it: http://pastebin.com/2xmykvVt ---------------------------------------------------------------------- Comment By: Andreas Kupries (andreas_kupries) Date: 2011-08-19 21:16 Message: Strongly suspect the IPv6 changes. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2011-08-19 21:13 Message: I confirm reproduction of the pastebin symptoms on the trunk tip. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2011-08-19 21:09 Message: http://pastebin.com/3mT6KPG6 ---------------------------------------------------------------------- Comment By: Andreas Kupries (andreas_kupries) Date: 2011-08-19 21:07 Message: [11:54] aku The only big change I recall to 'socket -server' is IPv6 support getting added. [11:54] aku Are you setting the encoding of the listening socket ? Or of the socket you get when the connection is accepted ? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=3394732&group_id=10894 |