curl/lib
Daniel Stenberg 2f928797cf fix the treatment of the parameter-based precision, as in "%.*s%s" as
previously the second %s would wrongly get the numerical argument that is used
for the variable precision for the first %s...
2007-11-20 10:03:33 +00:00
..
.cvsignore
amigaos.c
amigaos.h
arpa_telnet.h
base64.c
base64.h
ca-bundle.crt
config-amigaos.h
config-mac.h
config-os400.h
config-riscos.h
config-tpf.h
config-win32.h MSVC versions prior to VS2005 do not complain about portable C functions 2007-11-07 18:18:42 +00:00
config-win32ce.h MSVC versions prior to VS2005 do not complain about portable C functions 2007-11-07 18:18:42 +00:00
config.dos
connect.c
connect.h
content_encoding.c
content_encoding.h
cookie.c if () => if() 2007-11-07 09:21:35 +00:00
cookie.h
curl_ldap.h
curllib.dsw
curlx.h
dict.c if () => if() 2007-11-07 09:21:35 +00:00
dict.h
easy.c
easyif.h
escape.c if () => if() 2007-11-07 09:21:35 +00:00
escape.h
file.c Rearranged code and changed Curl_readwrite_init() and Curl_pre_readwrite() into 2007-11-15 21:45:45 +00:00
file.h
formdata.c
formdata.h
ftp.c if () => if() 2007-11-07 09:21:35 +00:00
ftp.h
getenv.c if () => if() 2007-11-07 09:21:35 +00:00
getinfo.c if () => if() 2007-11-07 09:21:35 +00:00
getinfo.h
gtls.c if () => if() 2007-11-07 09:21:35 +00:00
gtls.h
hash.c if () => if() 2007-11-07 09:21:35 +00:00
hash.h
hostares.c if () => if() 2007-11-07 09:21:35 +00:00
hostasyn.c
hostip4.c if () => if() 2007-11-07 09:21:35 +00:00
hostip6.c if () => if() 2007-11-07 09:21:35 +00:00
hostip.c if () => if() 2007-11-07 09:21:35 +00:00
hostip.h
hostsyn.c
hostthre.c
http_chunks.c Rearranged code and changed Curl_readwrite_init() and Curl_pre_readwrite() into 2007-11-15 21:45:45 +00:00
http_chunks.h
http_digest.c if () => if() 2007-11-07 09:21:35 +00:00
http_digest.h
http_negotiate.c
http_negotiate.h
http_ntlm.c
http_ntlm.h
http.c Fix unsigned integral math check in add_buffer_send() 2007-11-16 01:19:46 +00:00
http.h
if2ip.c if () => if() 2007-11-07 09:21:35 +00:00
if2ip.h
inet_ntoa_r.h
inet_ntop.c if () => if() 2007-11-07 09:21:35 +00:00
inet_ntop.h
inet_pton.c if () => if() 2007-11-07 09:21:35 +00:00
inet_pton.h
krb4.c if () => if() 2007-11-07 09:21:35 +00:00
krb4.h
krb5.c
ldap.c
libcurl.def
libcurl.framework.make
libcurl.imp
libcurl.plist
libcurl.rc
llist.c if () => if() 2007-11-07 09:21:35 +00:00
llist.h
Makefile.am
makefile.amiga
Makefile.b32
makefile.dj
Makefile.inc
Makefile.m32
Makefile.netware removed now obsolete defines; 2007-11-18 22:48:39 +00:00
Makefile.riscos
Makefile.vc6
Makefile.Watcom
md5.c if () => if() 2007-11-07 09:21:35 +00:00
md5.h
memdebug.c if () => if() 2007-11-07 09:21:35 +00:00
memdebug.h
memory.h
mprintf.c fix the treatment of the parameter-based precision, as in "%.*s%s" as 2007-11-20 10:03:33 +00:00
msvcproj.foot
msvcproj.head
multi.c Rearranged code and changed Curl_readwrite_init() and Curl_pre_readwrite() into 2007-11-15 21:45:45 +00:00
multiif.h
netrc.c if () => if() 2007-11-07 09:21:35 +00:00
netrc.h
nss.c
nssg.h
nwlib.c if () => if() 2007-11-07 09:21:35 +00:00
nwos.c if () => if() 2007-11-07 09:21:35 +00:00
parsedate.c if () => if() 2007-11-07 09:21:35 +00:00
parsedate.h
progress.c
progress.h
qssl.c if () => if() 2007-11-07 09:21:35 +00:00
qssl.h
README.ares
README.curlx
README.encoding
README.hostip
README.httpauth
README.memoryleak
README.multi_socket
README.pipelining
security.c if () => if() 2007-11-07 09:21:35 +00:00
select.c
select.h Some versions of winsock2.h have pollfd struct and constants 2007-11-10 04:23:15 +00:00
sendf.c
sendf.h
setup_once.h
setup-os400.h
setup.h Define WIN32 when build target is Win32 API. 2007-11-08 18:13:54 +00:00
share.c if () => if() 2007-11-07 09:21:35 +00:00
share.h
sockaddr.h
socks.c
socks.h
speedcheck.c
speedcheck.h
splay.c
splay.h
ssh.c Fixed a remaining problem with doing SFTP directory listings on a re-used 2007-11-12 23:04:44 +00:00
ssh.h
sslgen.c I think this is the right fix for other non-OpenSSL libs, based on the NSS fix 2007-11-19 09:24:24 +00:00
sslgen.h
ssluse.c
ssluse.h
strdup.c if () => if() 2007-11-07 09:21:35 +00:00
strdup.h
strequal.c if () => if() 2007-11-07 09:21:35 +00:00
strequal.h
strerror.c if () => if() 2007-11-07 09:21:35 +00:00
strerror.h
strtok.c if () => if() 2007-11-07 09:21:35 +00:00
strtok.h
strtoofft.c
strtoofft.h
telnet.c if () => if() 2007-11-07 09:21:35 +00:00
telnet.h
tftp.c Rearranged code and changed Curl_readwrite_init() and Curl_pre_readwrite() into 2007-11-15 21:45:45 +00:00
tftp.h
timeval.c
timeval.h
transfer.c Rearranged code and changed Curl_readwrite_init() and Curl_pre_readwrite() into 2007-11-15 21:45:45 +00:00
transfer.h Rearranged code and changed Curl_readwrite_init() and Curl_pre_readwrite() into 2007-11-15 21:45:45 +00:00
url.c Rearranged code and changed Curl_readwrite_init() and Curl_pre_readwrite() into 2007-11-15 21:45:45 +00:00
url.h
urldata.h Rearranged code and changed Curl_readwrite_init() and Curl_pre_readwrite() into 2007-11-15 21:45:45 +00:00
vc8proj.foot
vc8proj.head
version.c if () => if() 2007-11-07 09:21:35 +00:00

HTTP Pipelining with libcurl
============================

Background

Since pipelining implies that one or more requests are sent to a server before
the previous response(s) have been received, we only support it for multi
interface use.

Considerations

When using the multi interface, you create one easy handle for each transfer.
Bascially any number of handles can be created, added and used with the multi
interface - simultaneously. It is an interface designed to allow many
simultaneous transfers while still using a single thread. Pipelining does not
change any of these details.

API

We've added a new option to curl_multi_setopt() called CURLMOPT_PIPELINING
that enables "attempted pipelining" and then all easy handles used on that
handle will attempt to use an existing pipeline.

Details

- A pipeline is only created if a previous connection exists to the same IP
  address that the new request is being made to use.

- Pipelines are only supported for HTTP(S) as no other currently supported
  protocol has features resemembling this, but we still name this feature
  plain 'pipelining' to possibly one day support it for other protocols as
  well.

- HTTP Pipelining is for GET and HEAD requests only.

- When a pipeline is in use, we must take precautions so that when used easy
  handles (i.e those who still wait for a response) are removed from the multi
  handle, we must deal with the outstanding response nicely.

- Explicitly asking for pipelining handle X and handle Y won't be supported.
  It isn't easy for an app to do this association. The lib should probably
  still resolve the second one properly to make sure that they actually _can_
  be considered for pipelining. Also, asking for explicit pipelining on handle
  X may be tricky when handle X get a closed connection.

- We need options to control max pipeline length, and probably how to behave
  if we reach that limit. As was discussed on the list, it can probably be
  made very complicated, so perhaps we can think of a way to pass all
  variables involved to a callback and let the application decide how to act
  in specific situations. Either way, these fancy options are only interesting
  to work on when everything is working and we have working apps to test with.