https://bz.apache.org/bugzilla/show_bug.cgi?id=57853
Bug ID: 57853
Summary: mod_proxy_http sends request with header 'Expect:
100-continue' and not-empty body.
Product: Apache httpd-2
Version: 2.4.7
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_proxy_http
Assignee: [email protected]
Reporter: [email protected]
Created attachment 32684
--> https://bz.apache.org/bugzilla/attachment.cgi?id=32684&action=edit
tcpdump showing an error
Hi.
I used apache with mod_proxy_http as load balancer.
When client sends POST-request to my server, apache added header 'Expect:
100-continue' into it and redirect to application server (jetty).
Thus the body of the POST-message is sent in the same frame.
That is apache doesn't wait for the '100-continue'-response before sending a
body of the message.
But RFC-7231 says that in this case the server can, but isn't obliged, to
answer 100-continue:
o A server MAY omit sending a 100 (Continue) response if it has
already received some or all of the message body for the
corresponding request, or if the framing indicates that there is
no message body.
If server does not respond 100-continue for this request, apache waits for a
small timeout and respond to client 'server not avaiable'
I started discussion with jetty about this problem, link to it:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=464797
I reproduced this error locally and attached tcpdump, please, look at it.
packet#4: client sent request.
packat#13: apache added header 'Excpect: 100-continue' and resended it to jetty
(request for 100-continue and body in same frame).
packet#16: apache returned error to client: 'timeout awaiting 100-continue'
packet#22: jetty returned HTTP-200 OK
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]