First it depends on the socket type but might use a select call, secondable raise on a socket.error, thirdable you could call the close_handle with the message and let the guys if he would like to retry, network connection might be capricious especially for client connected through a wifi network or behind some firewall blocking port
the asyncchat is a looper if you don't let him catch the exception you just create an infinite loop, this API needs a stronger model.
Giampaolo Rodola' <g.rodola@gmail.com> added the comment:
Could you provide a code sample which demonstrates the problem?
----------
_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue9686>
_______________________________________