Skip to content

Commit

Permalink
Transport: _set_socket_option remove user_timeout as argument
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Dec 7, 2016
1 parent 5526798 commit 02a4f64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion amqp/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ def _get_tcp_socket_defaults(self, sock):
opt: sock.getsockopt(SOL_TCP, opt) for opt in TCP_OPTS
}

def _set_socket_options(self, socket_settings, user_timeout=0):
def _set_socket_options(self, socket_settings):
user_timeout = 0
if self.connect_timeout is not None:
user_timeout = int(math.ceil(self.connect_timeout * 1000.0))

Expand Down

0 comments on commit 02a4f64

Please sign in to comment.