This commit is contained in:
clowwindy 2014-12-25 16:23:43 +08:00
parent 99c8bbafe7
commit e8501da271

View file

@ -249,7 +249,7 @@ class TCPRelayHandler(object):
self._data_to_write_to_remote = [data] self._data_to_write_to_remote = [data]
else: else:
self._data_to_write_to_remote = [] self._data_to_write_to_remote = []
self._update_stream(STREAM_UP, WAIT_STATUS_READWRITING) self._update_stream(STREAM_UP, WAIT_STATUS_READWRITING)
except (OSError, IOError) as e: except (OSError, IOError) as e:
if eventloop.errno_from_exception(e) == errno.EINPROGRESS: if eventloop.errno_from_exception(e) == errno.EINPROGRESS:
# in this case data is not sent at all # in this case data is not sent at all