Print

Print


The `filesize` member was not being reset between requests.  If it is non-zero, the `XrdHttpReq` object uses the size when parsing header to potentially reduce the total read size (preventing it from going past the EOF).

Unfortunately, since the `filesize` was set to the size of the *previous* file transfer, this could cause the total response size to be less than the request, resulting in a shorter-than-expected response to the client.
You can view, comment on, or merge this pull request online at:

  https://github.com/xrootd/xrootd/pull/814

-- Commit Summary --

  * [XrdHttp] Reset filesize when the XrdHttpReq object is used.

-- File Changes --

    M src/XrdHttp/XrdHttpReq.cc (3)

-- Patch Links --

https://github.com/xrootd/xrootd/pull/814.patch
https://github.com/xrootd/xrootd/pull/814.diff

-- 
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/pull/814

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