mirror of
https://github.com/curl/curl.git
synced 2026-08-26 20:23:32 +03:00
Major overhaul introducing http pipelining support and shared connection
cache within the multi handle.
This commit is contained in:
parent
7e4193b538
commit
b7eeb6e67f
35 changed files with 2313 additions and 1066 deletions
16
lib/url.h
16
lib/url.h
|
|
@ -7,7 +7,7 @@
|
|||
* | (__| |_| | _ <| |___
|
||||
* \___|\___/|_| \_\_____|
|
||||
*
|
||||
* Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
* Copyright (C) 1998 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
*
|
||||
* This software is licensed as described in the file COPYING, which
|
||||
* you should have received as part of this distribution. The terms
|
||||
|
|
@ -46,6 +46,10 @@ CURLcode Curl_protocol_connecting(struct connectdata *conn, bool *done);
|
|||
CURLcode Curl_protocol_doing(struct connectdata *conn, bool *done);
|
||||
void Curl_safefree(void *ptr);
|
||||
|
||||
/* create a connection cache */
|
||||
struct conncache *Curl_mk_connc(int type);
|
||||
/* free a connection cache */
|
||||
void Curl_rm_connc(struct conncache *c);
|
||||
|
||||
int Curl_protocol_getsock(struct connectdata *conn,
|
||||
curl_socket_t *socks,
|
||||
|
|
@ -54,6 +58,16 @@ int Curl_doing_getsock(struct connectdata *conn,
|
|||
curl_socket_t *socks,
|
||||
int numsocks);
|
||||
|
||||
void Curl_addHandleToPipeline(struct SessionHandle *handle,
|
||||
struct curl_llist *pipe);
|
||||
void Curl_removeHandleFromPipeline(struct SessionHandle *handle,
|
||||
struct curl_llist *pipe);
|
||||
bool Curl_isHandleAtHead(struct SessionHandle *handle,
|
||||
struct curl_llist *pipe);
|
||||
void Curl_signalPipeClose(struct curl_llist *pipe);
|
||||
|
||||
void Curl_close_connections(struct SessionHandle *data);
|
||||
|
||||
#if 0
|
||||
CURLcode Curl_protocol_fdset(struct connectdata *conn,
|
||||
fd_set *read_fd_set,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue