You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Sebastiaan van Erk <se...@sebster.com> on 2007/06/24 17:04:44 UTC

[users@httpd] mod_proxy, content-length and flushpackets

Hi,

I'm running apache 2.2.4 with mod_proxy and I'm trying to make a Comet 
service hosted by a backend Tomcat 6.0.13 server work.

I have the following line in my httpd.conf:

    ProxyPass /mycometservice http://127.0.0.1:8080/mycometservice 
flushpackets=on

However, mod_proxy does not seem to be flushing my packets immediately, 
rather it seems to be waiting for the buffer to fill (or the entire POST 
body to arrive, I'm not sure which of the two). The server response also 
seems to be buffered by mod_proxy.

I have tested my Comet service with a direct connection to Tomcat and 
via a Squid proxy, and in both cases it works, so it is certainly a 
buffering issue I'm having with mod_proxy.

Note that I do not use chunked encoding (the client and server 
explicitly set the Content-Length headers), nor do I want to (for 
compatibility reasons).

Does anybody know what the problem could be and how I could fix it?

Any hints will be greatly appreciated.

Regards,
Sebastiaan

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org