1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-18 07:25:14 -05:00
curl/lib
2012-06-03 19:13:16 +01:00
..
.gitignore
amigaos.c
amigaos.h curl tool: use configuration files from lib directory 2012-04-06 23:37:05 +02:00
arpa_telnet.h TELNET: improved treatment of options 2011-11-25 10:46:49 +01:00
asyn-ares.c
asyn-thread.c win32-threaded-resolver: stop using a dummy socket 2012-01-04 23:16:30 +01:00
asyn.h fix a bunch of MSVC compiler warnings 2011-09-03 16:07:09 +02:00
axtls.c
axtls.h
base64.c
checksrc.pl
CMakeLists.txt
config-amigaos.h
config-dos.h
config-mac.h curl tool: use configuration files from lib directory 2012-04-06 23:37:05 +02:00
config-os400.h
config-riscos.h
config-symbian.h
config-tpf.h
config-vms.h
config-vxworks.h
config-win32.h
config-win32ce.h
connect.c singleipconnect: return OK even when Curl_socket() fails 2012-04-19 23:31:50 +02:00
connect.h
content_encoding.c
content_encoding.h
cookie.c
cookie.h
curl_addrinfo.c
curl_addrinfo.h
curl_base64.h
curl_config.h.cmake nss: unconditionally require PK11_CreateGenericObject() 2012-04-13 12:19:36 +02:00
curl_fnmatch.c unittest: mark all unit tested functions 2011-06-10 14:40:46 +02:00
curl_fnmatch.h ftp wildcard: a new option CURLOPT_FNMATCH_DATA 2010-05-16 02:52:33 +02:00
curl_gethostname.c
curl_gethostname.h
curl_gssapi.c
curl_gssapi.h
curl_hmac.h include libcurl standard internal headers 2010-06-02 14:13:02 +02:00
curl_ldap.h
curl_md4.h
curl_md5.h
curl_memory.h
curl_memrchr.c
curl_memrchr.h
curl_ntlm_core.c
curl_ntlm_core.h
curl_ntlm_msgs.c curl_ntlm_msgs.c: Corrected small spelling mistake in comments 2012-05-30 20:56:37 +01:00
curl_ntlm_msgs.h
curl_ntlm_wb.c
curl_ntlm_wb.h
curl_ntlm.c
curl_ntlm.h
curl_rand.c
curl_rand.h
curl_rtmp.c
curl_rtmp.h
curl_sasl.c
curl_sasl.h
curl_sspi.c
curl_sspi.h
curl_threads.c
curl_threads.h
curlx.h
cyassl.c
cyassl.h fix a bunch of MSVC compiler warnings 2011-09-03 16:07:09 +02:00
dict.c
dict.h
easy.c
easyif.h CURL_DOES_CONVERSIONS: cleanup 2011-04-20 00:50:07 +02:00
escape.c
escape.h
file.c query-part: ignore the URI part for given protocols 2011-11-24 23:31:19 +01:00
file.h remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
fileinfo.c
fileinfo.h
firefox-db2pem.sh
formdata.c
formdata.h
ftp.c
ftp.h timeleft_accept: ack global timeout, moved to ftp.c 2011-12-20 20:55:54 +01:00
ftplistparser.c
ftplistparser.h
getenv.c stdio.h, stdlib.h, string.h, stdarg.h and ctype.h inclusion done in setup_once.h 2011-07-26 17:23:27 +02:00
getinfo.c
getinfo.h
gopher.c
gopher.h Gopher protocol support (initial release) 2010-08-25 14:19:58 +02:00
gtls.c
gtls.h
hash.c hash.c: fix OOM triggered segfault 2011-12-25 11:35:45 +01:00
hash.h
hmac.c
hostasyn.c
hostip4.c
hostip6.c
hostip.c
hostip.h
hostsyn.c
http_chunks.c fix bool variables checking and assignment 2011-09-05 20:46:09 +02:00
http_chunks.h
http_digest.c
http_digest.h
http_negotiate_sspi.c http_negotiate_sspi.c: fix compiler warning 2012-01-13 13:34:43 +01:00
http_negotiate.c add LF termination to infof() trace string 2012-01-16 21:14:05 +01:00
http_negotiate.h
http_proxy.c
http_proxy.h
http.c
http.h
idn_win32.c
if2ip.c
if2ip.h
imap.c email: Moved server greeting responses into separate functions 2012-03-24 11:55:34 +00:00
imap.h
inet_ntop.c stdio.h, stdlib.h, string.h, stdarg.h and ctype.h inclusion done in setup_once.h 2011-07-26 17:23:27 +02:00
inet_ntop.h
inet_pton.c
inet_pton.h remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
krb4.c
krb4.h source cleanup: unify look, style and indent levels 2011-04-27 09:09:35 +02:00
krb5.c
ldap.c curl_multi_fdset: correct fdset with FTP PORT use 2011-10-21 23:36:54 +02:00
libcurl.def Yang Tse: msvc7+ has deprecated the 'DESCRIPTION' section in 2005-11-14 07:48:05 +00:00
libcurl.imp
libcurl.plist
libcurl.rc
libcurl.vers.in
llist.c
llist.h
Makefile.am
makefile.amiga curl tool: use configuration files from lib directory - follow-up I 2012-04-07 00:31:24 +02:00
Makefile.b32
makefile.dj
Makefile.inc sasl: Moved plain text authentication message creation from smtp.c 2012-05-30 20:52:52 +01:00
Makefile.m32
Makefile.netware Updated dependency libary versions. 2012-05-22 04:15:37 +02:00
Makefile.vc6 Updated dependency libary versions. 2012-05-22 04:15:37 +02:00
Makefile.vxworks
Makefile.Watcom Updated dependency libary versions. 2012-05-22 04:15:37 +02:00
md4.c
md5.c
memdebug.c
memdebug.h
mk-ca-bundle.pl
mk-ca-bundle.vbs
mprintf.c MemoryTracking: fix logging of free() calls done where Curl_safefree is called 2011-09-02 19:40:53 +02:00
msvcproj.foot
msvcproj.head
multi.c
multiif.h multi: support timeouts 2010-08-15 13:16:39 +02:00
netrc.c
netrc.h
non-ascii.c source cleanup: unify look, style and indent levels 2011-04-27 09:09:35 +02:00
non-ascii.h
nonblock.c
nonblock.h
nss.c nss: use human-readable error messages provided by NSS 2012-05-28 11:24:24 +02:00
nssg.h
nwlib.c
nwos.c
openldap.c
parsedate.c
parsedate.h
pingpong.c
pingpong.h
polarssl.c
polarssl.h PolarSSL: add support for asynchronous connect 2012-04-05 00:18:34 +02:00
pop3.c
pop3.h
progress.c HTTP: reset expected DL/UL sizes on redirects 2012-04-01 00:07:24 +02:00
progress.h
qssl.c
qssl.h
rawstr.c
rawstr.h
README.ares
README.curl_off_t spell! (most of it fixed by Tor Arntsen) 2008-08-27 06:10:47 +00:00
README.curlx
README.encoding
README.hostip
README.httpauth
README.memoryleak
README.multi_socket
README.pingpong
README.pipelining
rtsp.c
rtsp.h
security.c
select.c
select.h
sendf.c
sendf.h
setup_once.h
setup-os400.h
setup.h
share.c
share.h
slist.c
slist.h
smtp.c
smtp.h
sockaddr.h
socks_gssapi.c
socks_sspi.c
socks.c
socks.h
speedcheck.c
speedcheck.h
splay.c splay: add unit tests 2011-06-10 20:19:35 +02:00
splay.h
ssh.c SSH: public key can now be an empty string 2012-04-01 20:22:37 +02:00
ssh.h
sslgen.c
sslgen.h ssl session caching: fix compiler warnings 2012-01-18 23:42:39 +01:00
ssluse.c
ssluse.h
strdup.c
strdup.h
strequal.c
strequal.h
strerror.c
strerror.h
strtok.c
strtok.h
strtoofft.c
strtoofft.h
telnet.c
telnet.h
tftp.c
tftp.h
timeval.c
timeval.h
transfer.c
transfer.h source cleanup: unify look, style and indent levels 2011-04-27 09:09:35 +02:00
url.c
url.h
urldata.h
vc6libcurl.dsw
vc8proj.foot
vc8proj.head
version.c
warnless.c fix some compiler warnings 2012-03-25 18:30:16 +02:00
warnless.h
wildcard.c
wildcard.h

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.