Skip to content

Commit

Permalink
Fix ssl socket error handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Vigasin committed Jun 28, 2012
1 parent 83b3882 commit 32017dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tornado/iostream.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 32017dc

Please sign in to comment.