curl/lib
Daniel Stenberg 0f5895faee - Bug report #2416182 titled "crash in ConnectionExists when using
duphandle+curl_mutli" (http://curl.haxx.se/bug/view.cgi?id=2416182) showed
  that curl_easy_duphandle() wrongly also copied the pointer to the connection
  cache, which was plain wrong and caused a segfault if the handle would be
  used in a different multi handle than the handle it was duplicated from.
2008-12-11 23:52:56 +00:00
..
.cvsignore
amigaos.c
amigaos.h
arpa_telnet.h
base64.c Remove a chunk of unused code that was #ifdef'de on defines we never set. 2008-11-14 16:22:18 +00:00
config-amigaos.h Refactor configure script detection of functions used to set sockets into 2008-11-13 18:56:55 +00:00
config-mac.h Refactor configure script detection of functions used to set sockets into 2008-11-13 18:56:55 +00:00
config-os400.h _ Use getaddrinfo/getnameinfo ascii wrappers on OS400. 2008-12-11 19:20:03 +00:00
config-riscos.h the IP address we want/request/use from the interface is the 'local' 2008-11-17 19:08:35 +00:00
config-symbian.h Refactor configure script detection of functions used to set sockets into 2008-11-13 18:56:55 +00:00
config-tpf.h Refactor configure script detection of functions used to set sockets into 2008-11-13 18:56:55 +00:00
config-win32.h Refactor configure script detection of functions used to set sockets into 2008-11-13 18:56:55 +00:00
config-win32ce.h Refactor configure script detection of functions used to set sockets into 2008-11-13 18:56:55 +00:00
config.dos Refactor configure script detection of functions used to set sockets into 2008-11-13 18:56:55 +00:00
connect.c Added some #ifdefs around header files and change the EAGAIN test to 2008-11-14 23:17:32 +00:00
connect.h - Bug #2218480 (http://curl.haxx.se/bug/view.cgi?id=2218480) pointed out a 2008-11-03 16:24:56 +00:00
content_encoding.c
content_encoding.h
cookie.c - Pawel Kierski pointed out a mistake in the cookie code that could lead to a 2008-12-03 15:08:09 +00:00
cookie.h
curl_addrinfo.c Merged existing IPv4 and IPv6 Curl_ip2addr functions into a single one 2008-11-06 17:19:56 +00:00
curl_addrinfo.h Merged existing IPv4 and IPv6 Curl_ip2addr functions into a single one 2008-11-06 17:19:56 +00:00
curl_base64.h
curl_ldap.h
curl_md5.h
curllib.dsw
curlx.h
dict.c Added some #ifdefs around header files and change the EAGAIN test to 2008-11-14 23:17:32 +00:00
dict.h
easy.c - Bug report #2416182 titled "crash in ConnectionExists when using 2008-12-11 23:52:56 +00:00
easyif.h
escape.c
escape.h
file.c Added some #ifdefs around header files and change the EAGAIN test to 2008-11-14 23:17:32 +00:00
file.h
firefox-db2pem.sh
formdata.c Avoid creating garbage on an OOM error 2008-11-18 19:58:44 +00:00
formdata.h
ftp.c - Ken Hirsch simplified how libcurl does FTPS: now it doesn't assume any 2008-12-09 15:02:37 +00:00
ftp.h
getenv.c
getinfo.c
getinfo.h
gtls.c Made an array static const 2008-11-18 09:11:34 +00:00
gtls.h
hash.c add null-pointer check 2008-10-27 05:29:17 +00:00
hash.h
hostares.c Merged existing IPv4 and IPv6 Curl_ip2addr functions into a single one 2008-11-06 17:19:56 +00:00
hostasyn.c Use our Curl_addrinfo definition even when an addrinfo struct is available. 2008-10-30 13:45:25 +00:00
hostip4.c Merged existing IPv4 and IPv6 Curl_ip2addr functions into a single one 2008-11-06 17:19:56 +00:00
hostip6.c Move curl_dofreeaddrinfo() and curl_dofreeaddrinfo() 2008-10-30 19:02:23 +00:00
hostip.c Merged existing IPv4 and IPv6 Curl_ip2addr functions into a single one 2008-11-06 17:19:56 +00:00
hostip.h Merged existing IPv4 and IPv6 Curl_ip2addr functions into a single one 2008-11-06 17:19:56 +00:00
hostsyn.c
hostthre.c Merged existing IPv4 and IPv6 Curl_ip2addr functions into a single one 2008-11-06 17:19:56 +00:00
http_chunks.c fix compiler warning 2008-10-24 01:27:00 +00:00
http_chunks.h
http_digest.c - Internet Explorer had a broken HTTP digest authentication before v7 and 2008-12-10 23:13:31 +00:00
http_digest.h
http_negotiate.c moved the Curl_raw_ functions into the new lib/rawstr.c file for easier curlx_ 2008-10-23 11:49:19 +00:00
http_negotiate.h
http_ntlm.c moved the Curl_raw_ functions into the new lib/rawstr.c file for easier curlx_ 2008-10-23 11:49:19 +00:00
http_ntlm.h
http.c - Christian Krause filed bug #2221237 2008-12-08 13:52:20 +00:00
http.h
if2ip.c Fixed the getifaddrs version of Curl_if2ip to work on systems without IPv6 2008-12-04 06:24:00 +00:00
if2ip.h the IP address we want/request/use from the interface is the 'local' 2008-11-17 19:08:35 +00:00
inet_ntop.c
inet_ntop.h
inet_pton.c backport fix for failures to reject certain malformed literals 2008-11-17 02:40:41 +00:00
inet_pton.h
krb4.c fix OOM problem reported by Jim Meyering 2008-11-16 12:26:50 +00:00
krb4.h
krb5.c
ldap.c moved the Curl_raw_ functions into the new lib/rawstr.c file for easier curlx_ 2008-10-23 11:49:19 +00:00
libcurl.def
libcurl.framework.make Related with bug #2230535 (http://curl.haxx.se/bug/view.cgi?id=2230535) 2008-11-11 01:12:17 +00:00
libcurl.imp
libcurl.plist
libcurl.rc
llist.c remove debug-code which zero-filled some structures before free()ing them 2008-10-20 23:24:35 +00:00
llist.h
Makefile.am I liked Daniel Johnson's simplified version bumper guide so I modified the 2008-11-03 08:50:58 +00:00
makefile.amiga Related with bug #2230535 (http://curl.haxx.se/bug/view.cgi?id=2230535) 2008-11-11 01:12:17 +00:00
Makefile.b32
makefile.dj
Makefile.inc Use our Curl_addrinfo definition even when an addrinfo struct is available. 2008-10-30 13:45:25 +00:00
Makefile.m32 changed to latest libidn version. 2008-11-13 01:39:10 +00:00
Makefile.netware Refactor configure script detection of functions used to set sockets into 2008-11-13 18:56:55 +00:00
Makefile.riscos Related with bug #2230535 (http://curl.haxx.se/bug/view.cgi?id=2230535) 2008-11-11 01:12:17 +00:00
Makefile.vc6 Add missing curl_addrinfo, and sort the list. 2008-11-06 18:50:32 +00:00
Makefile.Watcom Added curl_addrinfo.obj. Rearranged alphabetically. 2008-11-01 15:02:16 +00:00
md5.c
memdebug.c Really old gcc doesn't like parenthesis around the names of functions that 2008-10-23 08:05:40 +00:00
memdebug.h Move curl_dofreeaddrinfo() and curl_dofreeaddrinfo() 2008-10-30 19:02:23 +00:00
memory.h
mk-ca-bundle.pl
mprintf.c
msvcproj.foot
msvcproj.head
multi.c - Igor Novoseltsev filed bug #2351645 2008-12-03 15:20:27 +00:00
multiif.h
netrc.c moved the Curl_raw_ functions into the new lib/rawstr.c file for easier curlx_ 2008-10-23 11:49:19 +00:00
netrc.h
nss.c based on a report by Jim Meyering, I went over and added checks for return 2008-11-15 23:43:10 +00:00
nssg.h
nwlib.c
nwos.c
parsedate.c moved the Curl_raw_ functions into the new lib/rawstr.c file for easier curlx_ 2008-10-23 11:49:19 +00:00
parsedate.h
progress.c
progress.h
qssl.c
qssl.h
rawstr.c moved the Curl_raw_ functions into the new lib/rawstr.c file for easier curlx_ 2008-10-23 11:49:19 +00:00
rawstr.h moved the Curl_raw_ functions into the new lib/rawstr.c file for easier curlx_ 2008-10-23 11:49:19 +00:00
README.ares
README.curl_off_t
README.curlx
README.encoding
README.hostip
README.httpauth
README.memoryleak
README.multi_socket
README.NSS
README.pipelining
security.c Marked with TODO comments a number of problems in the Kerberos code detected 2008-11-02 05:01:39 +00:00
select.c
select.h
sendf.c Christian Krause fixed a build failure when building with gss support 2008-11-16 12:42:53 +00:00
sendf.h
setup_once.h
setup-os400.h the IP address we want/request/use from the interface is the 'local' 2008-11-17 19:08:35 +00:00
setup.h if2ip.c related preprocessor cleanup 2008-11-17 14:24:15 +00:00
share.c attempt to fix or allow further detection of an elusive icc SIGSEGV 2008-10-19 20:17:16 +00:00
share.h
sockaddr.h
socks.c
socks.h
speedcheck.c
speedcheck.h
splay.c
splay.h
ssh.c Adjust some libssh2 preprocessor symbol definition checks 2008-11-29 16:39:56 +00:00
ssh.h Further adjust a libssh2 preprocessor function-symbol definition check 2008-11-29 17:45:16 +00:00
sslgen.c moved the Curl_raw_ functions into the new lib/rawstr.c file for easier curlx_ 2008-10-23 11:49:19 +00:00
sslgen.h - Rainer Canavan filed bug #2255627 2008-11-11 22:19:27 +00:00
ssluse.c moved the Curl_raw_ functions into the new lib/rawstr.c file for easier curlx_ 2008-10-23 11:49:19 +00:00
ssluse.h
strdup.c
strdup.h
strequal.c moved the Curl_raw_ functions into the new lib/rawstr.c file for easier curlx_ 2008-10-23 11:49:19 +00:00
strequal.h moved the Curl_raw_ functions into the new lib/rawstr.c file for easier curlx_ 2008-10-23 11:49:19 +00:00
strerror.c
strerror.h
strtok.c
strtok.h
strtoofft.c
strtoofft.h
telnet.c Added some #ifdefs around header files and change the EAGAIN test to 2008-11-14 23:17:32 +00:00
telnet.h
tftp.c Added some #ifdefs around header files and change the EAGAIN test to 2008-11-14 23:17:32 +00:00
tftp.h
timeval.c
timeval.h
transfer.c Added some #ifdefs around header files and change the EAGAIN test to 2008-11-14 23:17:32 +00:00
transfer.h
url.c Dan F pointed out that we don't need to scan IPv6 addresses for '%'-letters 2008-12-11 23:27:22 +00:00
url.h - Igor Novoseltsev filed bug #2351645 2008-12-03 15:20:27 +00:00
urldata.h - Internet Explorer had a broken HTTP digest authentication before v7 and 2008-12-10 23:13:31 +00:00
vc8proj.foot
vc8proj.head
version.c

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.