[issue9686] asyncore infinite loop on raise

2010-08-25 Thread mmw
New submission from mmw <0xcafef...@gmail.com>: def send(self, data): try: result = self.socket.send(data) return result except socket.error, why: if why.args[0] == EWOULDBLOCK: return 0 elif why.args

[issue9686] asyncore infinite loop on raise

2010-08-25 Thread mmw
mmw <0xcafef...@gmail.com> added the comment: 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 capr