curl/lib
Daniel Stenberg 30f7a2ff20 - Pramod Sharma reported and tracked down a bug when doing FTP over a HTTP
proxy. libcurl would then wrongly close the connection after each
  request. In his case it had the weird side-effect that it killed NTLM auth
  for the proxy causing an inifinite loop!

  I added test case 1098 to verify this fix. The test case does however not
  properly verify that the transfers are done persistently - as I couldn't
  think of a clever way to achieve it right now - but you need to read the
  stderr output after a test run to see that it truly did the right thing.
2009-04-17 12:48:24 +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
CMakeLists.txt
config-amigaos.h
config-mac.h
config-os400.h
config-riscos.h
config-symbian.h
config-tpf.h
config-win32.h
config-win32ce.h
config.dos Refactor configure script detection of functions used to set sockets into 2008-11-13 18:56:55 +00:00
config.h.cmake
connect.c
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 - A second follow-up change by Andre Guibert de Bruet to fix a related memory 2009-02-17 12:14:41 +00:00
content_encoding.h Added missing multiple header inclusion prevention definition 2008-07-11 18:42:30 +00:00
cookie.c
cookie.h Indentation fixes, untabify and related whitespace-cleanup. No code changed. 2009-02-27 08:53:10 +00:00
curl_addrinfo.c
curl_addrinfo.h
curl_base64.h
curl_ldap.h
curl_md5.h
curl_sspi.c
curl_sspi.h
curlx.h
dict.c
dict.h
easy.c fix compiler warning: enumerated type mixed with another type 2009-04-11 02:11:02 +00:00
easyif.h
escape.c
escape.h First commit of David McCreedy's EBCDIC and TPF changes. 2006-04-07 21:50:47 +00:00
file.c
file.h Fixed an OOM problem with file: URLs 2007-10-30 23:00:40 +00:00
firefox-db2pem.sh
formdata.c malloc+memset => calloc 2008-12-20 22:51:57 +00:00
formdata.h - Added CURLFORM_STREAM as a supported option to curl_formadd() to allow an 2008-03-31 10:02:23 +00:00
ftp.c - Pramod Sharma reported and tracked down a bug when doing FTP over a HTTP 2009-04-17 12:48:24 +00:00
ftp.h Added per-protocol callback static tables, replacing callback ptr storage 2007-10-12 13:36:37 +00:00
getenv.c ANSI C compatibility adjustment 2008-09-12 11:18:17 +00:00
getinfo.c - After a bug reported by James Cheng I've made curl_easy_getinfo() for 2009-02-23 18:45:00 +00:00
getinfo.h
gtls.c
gtls.h
hash.c add null-pointer check 2008-10-27 05:29:17 +00:00
hash.h
hostares.c
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 - Ravi Pratap provided work on libcurl making pipelining more robust and 2007-02-21 21:59:40 +00:00
http_digest.c fix compiler warning 2009-02-28 01:11:57 +00:00
http_digest.h Fixed some minor type mismatches and missing consts mainly found by splint. 2007-08-27 06:31:28 +00:00
http_negotiate.c
http_negotiate.h
http_ntlm.c
http_ntlm.h
http.c - Brian J. Murrell found out that Negotiate proxy authentication didn't work. 2009-02-24 08:30:09 +00:00
http.h - Test cases 1051, 1052 and 1055 were added by Daniel Fandrich on July 30 and 2008-08-04 22:00:22 +00:00
if2ip.c
if2ip.h
inet_ntop.c
inet_ntop.h
inet_pton.c
inet_pton.h
krb4.c
krb4.h
krb5.c
ldap.c
libcurl.def Yang Tse: msvc7+ has deprecated the 'DESCRIPTION' section in 2005-11-14 07:48:05 +00:00
libcurl.dsw - I renamed everything in the windows builds files that used the name 'curllib' 2009-02-23 09:36:54 +00:00
libcurl.imp there's an curl_easy_unescape too now 2006-04-18 09:23:03 +00:00
libcurl.plist
libcurl.rc use copyright define instead of hardcoded string. 2008-01-24 14:10:59 +00:00
llist.c
llist.h
Makefile.am
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 Static lib is libcurl.lib and import lib libcurl_imp.lib. 2004-11-14 13:48:15 +00:00
makefile.dj
Makefile.inc
Makefile.m32
Makefile.netware
Makefile.riscos
Makefile.vc6 Introduced curl_sspi.c and curl_sspi.h for the implementation of functions 2009-01-29 20:32:27 +00:00
Makefile.Watcom
md5.c Added support for Digest and NTLM authentication using GnuTLS. 2009-02-12 20:48:40 +00:00
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
memory.h
mk-ca-bundle.pl removed obsolete slash in URL. 2008-08-23 21:31:09 +00:00
mprintf.c fix compiler warning: external declaration in primary source file 2008-09-13 16:37:16 +00:00
msvcproj.foot
msvcproj.head
multi.c - Linus Nielsen Feltzing reported and helped me repeat and fix a problem with 2009-02-20 08:16:03 +00:00
multiif.h fix compiler warning: defined but not used 2008-09-13 15:59:14 +00:00
netrc.c fix compiler warning: implicit conversion shortens 64-bit value into a 32-bit value 2009-04-14 12:53:53 +00:00
netrc.h
nss.c
nssg.h
nwlib.c remove unnecessary typecasting of malloc() 2008-09-06 05:29:05 +00:00
nwos.c
parsedate.c
parsedate.h
progress.c fix compiler warning: explicit conversion of a 64-bit integral type to a smaller integral type 2008-10-11 01:56:04 +00:00
progress.h
qssl.c use HAVE_LIMITS_H symbol to protect limits.h inclusion 2009-04-14 13:50:32 +00:00
qssl.h New options added to OS400 wrapper and ILERPG definitions. 2008-07-07 10:39:46 +00:00
rawstr.c
rawstr.h Moved Curl_strntoupper() to the rawstr.c file where the other raw string 2009-02-07 22:53:37 +00:00
README.ares
README.curl_off_t
README.curlx
README.encoding Fixed a lingering omission of gzip support. 2005-12-08 18:59:19 +00:00
README.hostip Added README.hostip 2005-01-14 13:43:29 +00:00
README.httpauth
README.memoryleak corrected how tests/memanalyze.pl is used 2006-10-29 23:00:52 +00:00
README.multi_socket
README.NSS Added README.NSS to describe the current NSS situation. 2008-06-24 08:52:35 +00:00
README.pipelining updated to reflect reality 2006-10-29 09:11:44 +00:00
security.c
select.c
select.h
sendf.c - Frank Hempel found out a bug and provided the fix: 2009-03-09 12:21:46 +00:00
sendf.h made Curl_read_plain() return an 'int' instead of CURLcode since it actually 2008-09-29 11:13:37 +00:00
setup_once.h Don't abort configuration if recvfrom() is not available. 2008-08-27 00:25:02 +00:00
setup-os400.h
setup.h
share.c malloc+memset => calloc 2008-12-20 22:51:57 +00:00
share.h Added support for Salford-C under Win32 (scc). HAVE_MALLOC_H and 2006-04-26 17:11:05 +00:00
slist.c
slist.h
sockaddr.h
socks_gssapi.c
socks_sspi.c
socks.c If CURL_DISABLE_PROXY is defined, we must allow socks_sspi.c to call 2009-03-15 13:43:47 +00:00
socks.h - Markus Moeller introduced two new options to libcurl: 2009-01-28 21:33:58 +00:00
speedcheck.c Renamed several libcurl error codes and options to make them more general 2007-08-30 20:34:57 +00:00
speedcheck.h
splay.c
splay.h
ssh.c use HAVE_LIMITS_H symbol to protect limits.h inclusion 2009-04-14 13:50:32 +00:00
ssh.h
sslgen.c corrected and clarified the top comment 2009-02-25 12:51:39 +00:00
sslgen.h - Rainer Canavan filed bug #2255627 2008-11-11 22:19:27 +00:00
ssluse.c
ssluse.h
strdup.c
strdup.h
strequal.c
strequal.h
strerror.c ensure that errno is not modified inside Curl_strerror() 2008-09-12 10:51:57 +00:00
strerror.h removed trailing whitespace 2004-10-11 17:26:24 +00:00
strtok.c
strtok.h
strtoofft.c
strtoofft.h
telnet.c Fix TELNET transfers not being aborted upon write callback failures 2009-03-12 13:18:25 +00:00
telnet.h Added per-protocol callback static tables, replacing callback ptr storage 2007-10-12 13:36:37 +00:00
tftp.c
tftp.h
timeval.c
timeval.h update copyright year 2007-04-03 18:25:18 +00:00
transfer.c
transfer.h
url.c
url.h Moved Curl_strntoupper() to the rawstr.c file where the other raw string 2009-02-07 22:53:37 +00:00
urldata.h
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.