curl-library
Re: questions regarding libcurl's multi interface
Date: Thu, 20 Oct 2011 22:57:23 +0200 (CEST)
On Thu, 20 Oct 2011, Adam Glick wrote:
> 1) Assuming say 10 incoming requests and thus 10 simultaneous easy
> handles, how many server connections will there be?
If you don't enable pipelining, that will unconditionally mean 10 connections.
If you enable pipelining, it will be up to 10 connections depending on if
subsequent requests can be pipelined over existing connections or not.
> 2) Again assuming multiple simultaneous requests and that individual
> requests/responses may be large enough to fit into multiple TCP packets,
> will the simultaneous requests/replies reassemble properly?
Each connection is its own TCP stream and sure the requests and replies
reassemble perfectly well. Wouldn't the entire API break down if they
wouldn't?
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-10-20