Browse Source

Reset http connection on EPROTOTYPE errors.

This issue appears to be OSX specific.
master
James Hilliard 7 years ago
parent
commit
faee0eb447
  1. 5
      jmclient/jmclient/jsonrpc.py

5
jmclient/jmclient/jsonrpc.py

@ -117,6 +117,11 @@ class JsonRpc(object):
self.conn.close() self.conn.close()
self.conn.connect() self.conn.connect()
continue 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: else:
jlog.error('Unhandled connection error ' + str(e)) jlog.error('Unhandled connection error ' + str(e))
raise e raise e

Loading…
Cancel
Save