From: Eric Will Date: 2008-10-06T19:46:55+09:00 Subject: Re: stream closed (IOError) On Oct 5, 2008, at 9:21 PM, Yukihiro Matsumoto wrote: > According to the third URL, "stream closed" error was raised when fd > (IO object) is closed while a thread is waiting for that fd, > i.e. you've closed a socket which other thread (timer callback) is > blocking on. I think it was happening because the timer would kill off the socket, and then select() would be trying to check it in the main thread (no clue what was up with the error reporting, thread confusion!). I worked around this by just moving the timeout check from a Timer to manually doing it in the ioloop, before the dead connections are removed. Now it never gets to select(), and it works just fine. Thanks for your personal attention in helping me figure this out, matz. :) > matz. -- Eric Will