mirror of
https://github.com/curl/curl.git
synced 2026-07-31 11:38:06 +03:00
sws: log the exact closing reason better, to help debugging tests
Closes #22431
This commit is contained in:
parent
9951a2247e
commit
57cae40ae5
1 changed files with 9 additions and 1 deletions
|
|
@ -887,10 +887,18 @@ static int sws_send_doc(curl_socket_t sock, struct sws_httprequest *req)
|
|||
/* If the word 'swsclose' is present anywhere in the reply chunk, the
|
||||
connection is closed after the data has been sent to the requesting
|
||||
client... */
|
||||
if(strstr(buffer, "swsclose") || !count || req->close) {
|
||||
if(strstr(buffer, "swsclose")) {
|
||||
persistent = FALSE;
|
||||
logmsg("connection close instruction \"swsclose\" found in response");
|
||||
}
|
||||
else if(!count) {
|
||||
persistent = FALSE;
|
||||
logmsg("connection closed because of empty response");
|
||||
}
|
||||
else if(req->close) {
|
||||
persistent = FALSE;
|
||||
logmsg("connection closed because of close instruction in servercmd");
|
||||
}
|
||||
if(strstr(buffer, "swsbounce")) {
|
||||
sws_prevbounce = TRUE;
|
||||
logmsg("enable \"swsbounce\" in the next request");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue