fix POLL_HUP
This commit is contained in:
parent
46d23bf0d4
commit
35bfa56eaf
1 changed files with 2 additions and 2 deletions
|
@ -433,7 +433,7 @@ class TCPRelayHandler(object):
|
|||
self._on_remote_error()
|
||||
if self._stage == STAGE_DESTROYED:
|
||||
return
|
||||
if event & eventloop.POLL_IN:
|
||||
if event & (eventloop.POLL_IN | eventloop.POLL_HUP):
|
||||
self._on_remote_read()
|
||||
if self._stage == STAGE_DESTROYED:
|
||||
return
|
||||
|
@ -444,7 +444,7 @@ class TCPRelayHandler(object):
|
|||
self._on_local_error()
|
||||
if self._stage == STAGE_DESTROYED:
|
||||
return
|
||||
if event & eventloop.POLL_IN:
|
||||
if event & (eventloop.POLL_IN | eventloop.POLL_HUP):
|
||||
self._on_local_read()
|
||||
if self._stage == STAGE_DESTROYED:
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue