httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 57853] New: mod_proxy_http sends request with header 'Expect: 100-continue' and not-empty body.
Date Fri, 24 Apr 2015 08:15:30 GMT

            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

Created attachment 32684
tcpdump showing an error


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:

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:
For additional commands, e-mail:

View raw message