If I try calling the SendSimpleResponse without a body but with some length then the client hangs due to the Keep-Alive header which instructs the client the wait for data that will never come.
This doesn't sound right. The Keep-Alive
header simply hints that the client can reuse the TCP connection for further requests. It shouldn't affect whether the client hangs around
Looks like you're using -X HEAD
instead of -I
. There's special client logic for HEAD
responses in HTTP (to precisely avoid waiting); that's only triggered in curl
if you use the -I
option.
Sounds like if you try SendSimpleResponse
with -I
on the curl
command line it might get the desired result?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
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