I wanted to ask one question, but it turned out a few (I hope interrelated).
What do you think should be done if the message received in HTTP 1.1 (rfc2616) with the body declared
Transfer-Encoding: chunked
instead of the normal end of the next part and the title of the new contains "nonsense"?
I see the following options:
Stop at this place and give it to the handler.
Read further, trying to "recover in the sense of chunks"
Read to end of stream (EOF or timeout)
What are the suggestions?
Also interesting (not yet able to find) chunked and Connection: keep-alive compatible with each other or not? upd { not interested anymore. Compatible. }
And if compatible, then what to do with the connection in case of a similar error?
Upd 1
@razielsd , What do you mean ignore the request? It is clear that it is not necessary to perform it, but what to answer?
And what if this is not a request to me? and the answer to my request?
Generally, close the keep-alive connection? And if not, what to do with the data sent? read them before timeout (how to do it) or how to determine the end of the transfer?
Something I in this RFC will not find algorithms of processing of similar errors.
Upd 2
I will formulate the questions again.
- With this error keep-Alive close the connection?
- If this error occurred during a request (POST), then give an HTTP / 1.1 response 400 Bad request format ?