Reputation: 53
Some time ago we have noticed a number of HTTP 408 in the nginx connections log. All such requests are POST requests with a request time equal to nginx client_body_timeout. We have gathered a tcp dump and decrypt tls traffic. It looks like the client starts a request, sends headers with specied non-zero content-length header but then after a delimeter between headers and a body there is no data transmitted at all from the client side. Nginx politely waits for any data and after a period equal to client_body_timeout gently closes the connection. Could anyone clarify what could be the cause of such behavior? Some additional information:
Upvotes: 5
Views: 1116
Reputation: 1
We are having the same problem. In our case nginx
server returns HTTP 408
code when receiving a HTTPS POST
request with a large header (20 Kb) but 0 length body - the same request with smaller header works correctly. Adding just a 1 char body(' ') solved the problem in our case but I don't really understand the reason.
Upvotes: 0