You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Andrew Gaydenko <a...@gaydenko.com> on 2008/06/26 00:08:15 UTC

[users@httpd] ab, keep-alive and chunked response

Is ApacheBench intended to work with (simultaneous) persistent connection and
chunked response?
-- 
View this message in context: http://www.nabble.com/ab%2C-keep-alive-and-chunked-response-tp18122732p18122732.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
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


Re: [users@httpd] ab, keep-alive and chunked response

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Andrew Gaydenko wrote:
> Is ApacheBench intended to work with (simultaneous) persistent connection and
> chunked response?

Yes, and no.

the ab -k flag toggles keepalive behavior for keepalibes, -c sets the number
of parallel connections.

ab advertises HTTP/1.0 so it's not chunked-ready.  Good argument for a new
implementation based on serf ;-)

---------------------------------------------------------------------
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


Re: [users@httpd] ab, keep-alive and chunked response

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Andrew Gaydenko wrote:
> 
> OK. Let's try another way. Is there a possibility to force Apache server to
> use chunked response? Probably I have missed something in doc...

Not from the client, per say.  When the client advertises HTTP/1.1 support,
it is required to accept Transfer-Encoding: chunked as well as any other
Accept-Encoding: it advertised.

The server chooses between transfer-encoding: chunked or content-length: n
based responses.  The way to force apache on the server side to chunk the
response is to filter it, such that it doesn't know the content length.
If it doesn't know the final content length, it will chunk the response.



---------------------------------------------------------------------
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


Re: [users@httpd] ab, keep-alive and chunked response

Posted by Andrew Gaydenko <a...@gaydenko.com>.


Andrew Gaydenko wrote:
> 
> Is ApacheBench intended to work with (simultaneous) persistent connection
> and chunked response?
> 

It seems nobody knows :-)

OK. Let's try another way. Is there a possibility to force Apache server to
use chunked response? Probably I have missed something in doc...
-- 
View this message in context: http://www.nabble.com/ab%2C-keep-alive-and-chunked-response-tp18122732p18178227.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
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