Merge pull request #913 from tahajahangir/patch-1

Don't raise connection reset errors in `set_nodelay`
This commit is contained in:
bdarnell 2013-10-13 14:11:10 -07:00
commit a10c1646dc
1 changed files with 1 additions and 1 deletions

View File

@ -774,7 +774,7 @@ class IOStream(BaseIOStream):
# Sometimes setsockopt will fail if the socket is closed
# at the wrong time. This can happen with HTTPServer
# resetting the value to false between requests.
if e.errno != errno.EINVAL:
if e.errno not in (errno.EINVAL, errno.ECONNRESET):
raise