Skip to content

Commit c7e7ec3

Browse files
committed
[fix] An idle timeout should be shown as status code 504
1 parent 78ce975 commit c7e7ec3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/api/http.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ auto ResponseHead::error_to_status(StreamEnd::Error err, int &status) -> pjs::St
149149
case StreamEnd::CONNECTION_TIMEOUT:
150150
case StreamEnd::READ_TIMEOUT:
151151
case StreamEnd::WRITE_TIMEOUT:
152+
case StreamEnd::IDLE_TIMEOUT:
152153
status = 504;
153154
return s_gateway_timeout;
154155
default:

0 commit comments

Comments
 (0)