Merge pull request #913 from tahajahangir/patch-1
Don't raise connection reset errors in `set_nodelay`
This commit is contained in:
commit
a10c1646dc
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue