Browse Source

Merge #301: Reset http connection on EPROTOTYPE errors.

faee0eb Reset http connection on EPROTOTYPE errors. (James Hilliard)
master
AdamISZ 7 years ago
parent
commit
279c52a2cf
No known key found for this signature in database
GPG Key ID: 141001A1AF77F20B
  1. 5
      jmclient/jmclient/jsonrpc.py

5
jmclient/jmclient/jsonrpc.py

@ -117,6 +117,11 @@ class JsonRpc(object):
self.conn.close()
self.conn.connect()
continue
elif e.errno == errno.EPROTOTYPE:
jlog.warn('Connection had protocol wrong type for socket error, attempting reconnect.')
self.conn.close()
self.conn.connect()
continue
else:
jlog.error('Unhandled connection error ' + str(e))
raise e

Loading…
Cancel
Save