Print

Print


XrdHttp should have better handling of the `Connection` header.  Without it, HTTP 1.0 clients may timeout when trying to download files.

For example, using the venerable `ab` ("ApacheBench") utility with the following invocation:
```
ab -n1 http://host.example.com/foo
```
it will hang and fail the connection because it sets `Connection: close` in the request and waits for the TCP connection to close before considering the request complete (note: if you are trying to reproduce, it will only do this for a `20x` response).

My reading of things is that the response behavior should be:
   * If the request asks to keep the connection alive, keep it alive.
   * If the request asks to close the connection, close it.
   * If the request doesn't provide a `Connection` header, it should be kept alive as we respond with `HTTP 1.1` (the default for that version).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/809

########################################################################
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