Print

Print


HTTP provides a response to include a "trailer" in addition to the better-known "header".  If a user sets the following headers in the request:

```
X-Transfer-Status: true
TE: trailers
Transfer-Encoding: chunked
```

Then the response will used chunked encoding and indicate, on the last returned chunk, whether an error has occurred.

Clients aware of these headers can now receive an error message from XRootD if there's an IO error in the middle of the response.  This is expected to be useful in XCache use cases where failure mid-response is somewhat more common.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Allow XRootD to return trailers indicating failure

-- File Changes --

    M src/XrdHttp/XrdHttpExtHandler.cc (2)
    M src/XrdHttp/XrdHttpProtocol.cc (37)
    M src/XrdHttp/XrdHttpProtocol.hh (13)
    M src/XrdHttp/XrdHttpReq.cc (88)
    M src/XrdHttp/XrdHttpReq.hh (8)

-- Patch Links --

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

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

Message ID: <[log in to unmask]>

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