curl/lib
Gunter Knauf 9682c2037e Added support for server name indication (RFC 4366).
Patch submitted by Kaspar Brand.
2008-02-26 10:30:13 +00:00
..
.cvsignore
amigaos.c
amigaos.h
arpa_telnet.h
base64.c
base64.h
config-amigaos.h
config-mac.h
config-os400.h
config-riscos.h
config-tpf.h
config-win32.h
config-win32ce.h
config.dos
connect.c - Refactored a lot of timeout code into a few functions in an attempt to make 2008-02-07 22:25:04 +00:00
connect.h - Refactored a lot of timeout code into a few functions in an attempt to make 2008-02-07 22:25:04 +00:00
content_encoding.c
content_encoding.h
cookie.c - Niklas Angebrand made the cookie support in libcurl properly deal with the 2008-01-31 12:21:57 +00:00
cookie.h - Niklas Angebrand made the cookie support in libcurl properly deal with the 2008-01-31 12:21:57 +00:00
curl_ldap.h
curllib.dsw
curlx.h
dict.c
dict.h
easy.c
easyif.h
escape.c
escape.h
file.c - Dmitry Kurochkin moved several struct fields from the connectdata struct to 2008-01-31 12:04:33 +00:00
file.h
formdata.c
formdata.h
ftp.c - Refactored a lot of timeout code into a few functions in an attempt to make 2008-02-07 22:25:04 +00:00
ftp.h
getenv.c
getinfo.c
getinfo.h
gtls.c Added support for server name indication (RFC 4366). 2008-02-26 10:30:13 +00:00
gtls.h
hash.c
hash.h
hostares.c
hostasyn.c
hostip4.c
hostip6.c
hostip.c
hostip.h
hostsyn.c
hostthre.c Bug report #1888932 (http://curl.haxx.se/bug/view.cgi?id=1888932) points 2008-02-10 04:20:09 +00:00
http_chunks.c - Dmitry Kurochkin moved several struct fields from the connectdata struct to 2008-01-31 12:04:33 +00:00
http_chunks.h
http_digest.c
http_digest.h
http_negotiate.c
http_negotiate.h
http_ntlm.c
http_ntlm.h
http.c https_getsock() should be static all over (and did some fixed indenting) 2008-02-18 19:53:31 +00:00
http.h
if2ip.c
if2ip.h
inet_ntoa_r.h
inet_ntop.c
inet_ntop.h
inet_pton.c
inet_pton.h
krb4.c
krb4.h
krb5.c
ldap.c
libcurl.def
libcurl.framework.make
libcurl.imp
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 - We're no longer providing a very old ca-bundle in the curl tarball. You can 2008-02-18 11:35:12 +00:00
makefile.amiga
Makefile.b32
makefile.dj
Makefile.inc
Makefile.m32 silent stupid 'del' message when no files to delete found; 2008-01-29 23:46:41 +00:00
Makefile.netware added check symbol for linking with POSIX prelude. 2008-02-18 15:30:11 +00:00
Makefile.riscos
Makefile.vc6
Makefile.Watcom
md5.c
md5.h
memdebug.c
memdebug.h
memory.h
mk-ca-bundle.pl fixed version var. 2008-02-15 00:41:54 +00:00
mprintf.c
msvcproj.foot
msvcproj.head
multi.c - We no longer support setting the CURLOPT_URL option from inside a callback 2008-02-20 08:28:02 +00:00
multiif.h
netrc.c
netrc.h
nss.c - Based on initial work done by Gautam Kachroo to address a bug, we now keep 2008-02-20 09:56:26 +00:00
nssg.h
nwlib.c
nwos.c
parsedate.c
parsedate.h
progress.c
progress.h
qssl.c - Based on initial work done by Gautam Kachroo to address a bug, we now keep 2008-02-20 09:56:26 +00:00
qssl.h
README.ares
README.curlx
README.encoding
README.hostip
README.httpauth
README.memoryleak
README.multi_socket
README.pipelining
security.c
select.c
select.h
sendf.c - Based on initial work done by Gautam Kachroo to address a bug, we now keep 2008-02-20 09:56:26 +00:00
sendf.h
setup_once.h
setup-os400.h
setup.h
share.c
share.h
sockaddr.h
socks.c Yang Tse pointed out a few remaining quirks from my timeout refactoring from 2008-02-11 22:03:31 +00:00
socks.h
speedcheck.c
speedcheck.h
splay.c
splay.h
ssh.c fix compiler warnings: 'statement is unreachable' 2008-02-19 17:25:19 +00:00
ssh.h
sslgen.c - Based on initial work done by Gautam Kachroo to address a bug, we now keep 2008-02-20 09:56:26 +00:00
sslgen.h
ssluse.c Added support for server name indication (RFC 4366). 2008-02-26 10:30:13 +00:00
ssluse.h
strdup.c Fix problem in strdup replacement when dealing with absolutely huge strings. 2008-02-06 19:01:13 +00:00
strdup.h
strequal.c
strequal.h
strerror.c
strerror.h
strtok.c
strtok.h
strtoofft.c
strtoofft.h
telnet.c
telnet.h
tftp.c Yang Tse pointed out a few remaining quirks from my timeout refactoring from 2008-02-11 22:03:31 +00:00
tftp.h
timeval.c
timeval.h
transfer.c - Zmey Petroff found a crash when libcurl accessed a NULL pointer, which 2008-02-21 17:52:16 +00:00
transfer.h
url.c assert that the *connp is a non-NULL pointer when Curl_done() is called 2008-02-21 12:28:45 +00:00
url.h
urldata.h - Based on initial work done by Gautam Kachroo to address a bug, we now keep 2008-02-20 09:56:26 +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.