Skip to content

Commit

Permalink
Fixes the UDP client socket timeout bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Galen Collins committed Sep 26, 2015
1 parent fec7ac3 commit 335f646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymodbus/client/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def connect(self):
try:
family = ModbusUdpClient._get_address_family(self.host)
self.socket = socket.socket(family, socket.SOCK_DGRAM)
self.settimeout(self.timeout)
self.socket.settimeout(self.timeout)
except socket.error, ex:
_logger.error('Unable to create udp socket %s' % ex)
self.close()
Expand Down

0 comments on commit 335f646

Please sign in to comment.