Skip to content

Commit 9118028

Browse files
committed
Connection errors can happen here too.
1 parent 3309419 commit 9118028

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tornado/iostream.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ def _read_from_buffer(self):
499499
def _handle_connect(self):
500500
err = self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR)
501501
if err != 0:
502+
self.error = socket.error(err, os.strerror(err))
502503
# IOLoop implementations may vary: some of them return
503504
# an error state before the socket becomes writable, so
504505
# in that case a connection failure would be handled by the

0 commit comments

Comments
 (0)