I appreciate your help. To replicate the persistent connection issue, either telnet or the short python script below should work.

import requests
import logging

logging.basicConfig()
logging.getLogger().setLevel(logging.DEBUG)

s = requests.Session()

url = 'http://hcc-stash.unl.edu:8000/user/bbockelm/public/testfile'

for i in range(0, 3):
    print "Request #%d" % i
    r = s.get(url)
    print "Status = %d\n" % r.status_code

In the sample output below, we see "Resetting dropped connection", showing where the server disconnected. The requests are still successful due to error handling in the HTTP client.

Request #0
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): hcc-stash.unl.edu
DEBUG:requests.packages.urllib3.connectionpool:"GET /user/bbockelm/public/testfile HTTP/1.1" 200 1048576
Status = 200

Request #1
INFO:requests.packages.urllib3.connectionpool:Resetting dropped connection: hcc-stash.unl.edu
DEBUG:requests.packages.urllib3.connectionpool:"GET /user/bbockelm/public/testfile HTTP/1.1" 200 1048576
Status = 200

Request #2
INFO:requests.packages.urllib3.connectionpool:Resetting dropped connection: hcc-stash.unl.edu
DEBUG:requests.packages.urllib3.connectionpool:"GET /user/bbockelm/public/testfile HTTP/1.1" 200 1048576
Status = 200


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/xrootd/xrootd","title":"xrootd/xrootd","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/xrootd/xrootd"}},"updates":{"snippets":[{"icon":"PERSON","message":"@jthiltges in #596: I appreciate your help. To replicate the persistent connection issue, either telnet or the short python script below should work.\r\n\r\n```python\r\nimport requests\r\nimport logging\r\n\r\nlogging.basicConfig()\r\nlogging.getLogger().setLevel(logging.DEBUG)\r\n\r\ns = requests.Session()\r\n\r\nurl = 'http://hcc-stash.unl.edu:8000/user/bbockelm/public/testfile'\r\n\r\nfor i in range(0, 3):\r\n print \"Request #%d\" % i\r\n r = s.get(url)\r\n print \"Status = %d\\n\" % r.status_code\r\n```\r\n\r\nIn the sample output below, we see \"Resetting dropped connection\", showing where the server disconnected. The requests are still successful due to error handling in the HTTP client.\r\n\r\n```\r\nRequest #0\r\nINFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): hcc-stash.unl.edu\r\nDEBUG:requests.packages.urllib3.connectionpool:\"GET /user/bbockelm/public/testfile HTTP/1.1\" 200 1048576\r\nStatus = 200\r\n\r\nRequest #1\r\nINFO:requests.packages.urllib3.connectionpool:Resetting dropped connection: hcc-stash.unl.edu\r\nDEBUG:requests.packages.urllib3.connectionpool:\"GET /user/bbockelm/public/testfile HTTP/1.1\" 200 1048576\r\nStatus = 200\r\n\r\nRequest #2\r\nINFO:requests.packages.urllib3.connectionpool:Resetting dropped connection: hcc-stash.unl.edu\r\nDEBUG:requests.packages.urllib3.connectionpool:\"GET /user/bbockelm/public/testfile HTTP/1.1\" 200 1048576\r\nStatus = 200\r\n```"}],"action":{"name":"View Issue","url":"https://github.com/xrootd/xrootd/issues/596#issuecomment-334178513"}}}

Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1