nghttpx: Returns 408 if backend timed out before sending headers
This commit is contained in:
parent
8a59ce6d37
commit
053c7ac588
|
@ -1378,7 +1378,11 @@ int Http2Upstream::downstream_error(DownstreamConnection *dconn, int events) {
|
|||
} else {
|
||||
unsigned int status;
|
||||
if (events & Downstream::EVENT_TIMEOUT) {
|
||||
status = 504;
|
||||
if (downstream->get_request_header_sent()) {
|
||||
status = 504;
|
||||
} else {
|
||||
status = 408;
|
||||
}
|
||||
} else {
|
||||
status = 502;
|
||||
}
|
||||
|
|
|
@ -893,7 +893,11 @@ int HttpsUpstream::downstream_error(DownstreamConnection *dconn, int events) {
|
|||
|
||||
unsigned int status;
|
||||
if (events & Downstream::EVENT_TIMEOUT) {
|
||||
status = 504;
|
||||
if (downstream->get_request_header_sent()) {
|
||||
status = 504;
|
||||
} else {
|
||||
status = 408;
|
||||
}
|
||||
} else {
|
||||
status = 502;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue