Skip to content

Commit

Permalink
Correctly handle disconnections while sending short responses in Done()
Browse files Browse the repository at this point in the history
  • Loading branch information
ffurano committed Oct 6, 2017
1 parent 0e841d1 commit 01db447
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/XrdHttp/XrdHttpReq.cc
Original file line number Diff line number Diff line change
Expand Up @@ -531,10 +531,14 @@ bool XrdHttpReq::Done(XrdXrootd::Bridge::Context & info) {
TRACE(REQ, " XrdHttpReq::Done");

xrdresp = kXR_ok;
//this->iovN = 0;

if (PostProcessHTTPReq(true)) reset();



int r = PostProcessHTTPReq(true);
// Beware, we don't have to reset() if the result is 0
if (r) reset();
if (r < 0) return false;


return true;
};

Expand Down

0 comments on commit 01db447

Please sign in to comment.