[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] Warning from ProxyServlet
|
After some digging around I found that the problem is associated with
the ProxyServlet receiving a 100 Continue status from the server to
which it is forwarding.
- The client program I was using always included Expect: 100-continue
with the POST headers.
- The Expect header was being copied and forwarded by the proxy servlet.
- The underlying server sometimes returned 200 OK but sometimes 100
Continue.
- If it returned 100 Continue the ProxyServlet logged the warning I
mentioned earlier, then didn't do anything else. Otherwise it was fine.
As I mentioned in my earlier post I can see that my underlying server is
processing a request, which would have been contained in the request
body. I think this means the ProxyServlet is sending the request body
before it receives 100 Continue. So this seems like a bug to me *
For a short term workaround I can either make sure my clients don't send
Expect: 100-continue, or I can subclass the ProxyServlet and get it to
not copy that header.
Mark
* I haven't submitted this as a bug as I had trouble getting the
debugging output to work properly. I'm running my Java program with
embedded Jetty server using -DDEBUG, but it doesn't make any difference.
Any pointers?