Skip to content

Commit

Permalink
Silence a warning on freebsd.
Browse files Browse the repository at this point in the history
This was already changed for other platforms but the error behaves
a bit differently on freebsd.
  • Loading branch information
bdarnell committed Feb 1, 2015
1 parent f87996e commit eb4649e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tornado/iostream.py
Original file line number Diff line number Diff line change
Expand Up @@ -1039,8 +1039,9 @@ class is recommended instead of calling this method directly.
# reported later in _handle_connect.
if (errno_from_exception(e) not in _ERRNO_INPROGRESS and
errno_from_exception(e) not in _ERRNO_WOULDBLOCK):
gen_log.warning("Connect error on fd %s: %s",
self.socket.fileno(), e)
if future is None:
gen_log.warning("Connect error on fd %s: %s",
self.socket.fileno(), e)
self.close(exc_info=True)
return future
self._add_io_state(self.io_loop.WRITE)
Expand Down

0 comments on commit eb4649e

Please sign in to comment.