From 97192d92d9f1562970951df78bc944e8de01cb72 Mon Sep 17 00:00:00 2001 From: Uttam Pawar Date: Wed, 27 Sep 2017 14:55:13 -0700 Subject: [PATCH] Socket call has default setting of 'keepalive' causing socket connection errors. Added 'Connection: close' option to the header making sure to close the connection after each request. With this change I don't see any connection errors. --- Node-DC-EIS-client/node_dc_eis_testurls.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Node-DC-EIS-client/node_dc_eis_testurls.py b/Node-DC-EIS-client/node_dc_eis_testurls.py index bf6158f..36c759b 100644 --- a/Node-DC-EIS-client/node_dc_eis_testurls.py +++ b/Node-DC-EIS-client/node_dc_eis_testurls.py @@ -112,6 +112,7 @@ def get_url(url, url_type, request_num, log, phase, accept_header): Host: {} User-Agent: runspec/0.9 Accept: {} +Connection: close '''.format(req_path, urlo.netloc, accept_header)