Permalink
Browse files

Fix ssl socket error handling.

  • Loading branch information...
1 parent 83b3882 commit 32017dc66c763315a5113d7d6363dfab9110c1f4 Ivan Vigasin committed Jun 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tornado/iostream.py
View
@@ -654,7 +654,7 @@ def _do_ssl_handshake(self):
return self.close()
raise
except socket.error, err:
- if err.args[0] == errno.ECONNABORTED:
+ if err.args[0] in (errno.ECONNABORTED, errno.ECONNRESET):
return self.close()
else:
self._ssl_accepting = False

0 comments on commit 32017dc

Please sign in to comment.