--- /usr/lib/python2.3/asyncore.py 2004-01-22 14:44:56.000000000 +0100 +++ asyncore.py 2004-05-13 23:18:59.564563918 +0200 @@ -82,9 +82,9 @@ def readwrite(obj, flags): try: - if flags & select.POLLIN: + if flags & (select.POLLIN | select.POLLHUP): obj.handle_read_event() - if flags & select.POLLOUT: + if flags & (select.POLLOUT | select.POLLHUP): obj.handle_write_event() except ExitNow: raise