aboutsummaryrefslogtreecommitdiff
path: root/lib/multi.c
AgeCommit message (Collapse)Author
2006-05-09Robson Braga Araujo fixed a memory leak when you added an easy handle to aDaniel Stenberg
multi stack and that easy handle had already been used to do one or more easy interface transfers, as then the code threw away the previously used DNS cache without properly freeing it.
2006-04-26Fixed signed/unsigned convertion errors in Salford-C.Gisle Vanem
#ifdef around WSAEDISCON in strerror.c.
2006-04-25prevent signed/unsigned warningsDaniel Stenberg
2006-04-21each socket is used by exactly one easy handle, but of course each easy handleDaniel Stenberg
can and will use more than one socket
2006-04-18attempt to silence the MIPSPro compiler warningDaniel Stenberg
2006-04-10First curl_multi_socket() commit. Should primarily be considered as an internalDaniel Stenberg
code rearrange to fit the future better.
2006-02-23argh, forgot the check for a connection before we call Curl_doneDaniel Stenberg
2006-02-23Lots of work and analysis by "xbx___" in bug #1431750Daniel Stenberg
(http://curl.haxx.se/bug/view.cgi?id=1431750) helped me identify and fix two different but related bugs: 1) Removing an easy handle from a multi handle before the transfer is done could leave a connection in the connection cache for that handle that is in a state that isn't suitable for re-use. A subsequent re-use could then read from a NULL pointer and segfault. 2) When an easy handle was removed from the multi handle, there could be an outstanding c-ares DNS name resolve request. When the response arrived, it caused havoc since the connection struct it "belonged" to could've been freed already. Now Curl_done() is called when an easy handle is removed from a multi handle pre-maturely (that is, before the transfer was complteted). Curl_done() also makes sure to cancel all (if any) outstanding c-ares requests.
2006-02-11Karl M added the CURLOPT_CONNECT_ONLY and CURLINFO_LASTSOCKET options thatDaniel Stenberg
an app can use to let libcurl only connect to a remote host and then extract the socket from libcurl. libcurl will then not attempt to do any transfer at all after the connect is done.
2005-03-08remove old printf() debug leftoverDaniel Stenberg
2005-02-09FTP code turned into state machine. Not completely yet, but a good start.Daniel Stenberg
The tag 'before_ftp_statemachine' was set just before this commit in case of future need.
2005-01-30if the DO operation returns failure, bail out and close down nicely toDaniel Stenberg
prevent memory leakage
2005-01-29Using the multi interface, and doing a requsted a re-used connection thatDaniel Stenberg
gets closed just after the request has been sent failed and did not re-issue a request on a fresh reconnect like the easy interface did. Now it does! (define CURL_MULTIEASY, run test case 160)
2005-01-29multi interface: when a request is denied due to "Maximum redirects followed"Daniel Stenberg
libcurl leaked the last Location: URL.
2005-01-25Use plain structs and not typedef'ed ones in the hash and linked-list code.Daniel Stenberg
2005-01-11Renamed easy.h and multi.h to easyif.h and multiif.h to make sure they don'tDaniel Stenberg
shadow our public headers with the former names.
2005-01-11Cyrill Osterwalder posted a detailed analysis about a bug that occurs whenDaniel Stenberg
using a custom Host: header and curl fails to send a request on a re-used persistent connection and thus creates a new connection and resends it. It then sent two Host: headers. Cyrill's analysis was posted here: http://curl.haxx.se/mail/archive-2005-01/0022.html
2005-01-10Use Curl_easy_addmulti() to clear associations from easy handles to multiDaniel Stenberg
handles. Include multi.h to get proto.
2005-01-10Pavel Orehov reported memory problems with the multi interface in bug reportDaniel Stenberg
#1098843. In short, a shared DNS cache was setup for a multi handle and when the shared cache was deleted before the individual easy handles, the latter cleanups caused read/writes to already freed memory.
2004-08-31fix the return code for curl_multi_add_handle()Daniel Stenberg
2004-06-29First attempt at making the multi interface work when connecting to a hostDaniel Stenberg
that resolves to multiple IP addresses.
2004-05-17new Curl_done() protoDaniel Stenberg
2004-05-17better bailing out on memory failureDaniel Stenberg
2004-05-17bail out nicely if strdup() returns NULL, removed trailing whitespaceDaniel Stenberg
2004-05-13return on memory alloc failDaniel Stenberg
2004-05-12Curl_done() and the protocol-specific conn->curl_done() functions now allDaniel Stenberg
take a CURLcode as a second argument, that is non-zero when Curl_done() is called after an error was returned from Curl_do() (or similar).
2004-05-11curl_global_init_mem() allows the memory functions to be replaced.Daniel Stenberg
memory.h is included everywhere for this.
2004-04-26Major hostip.c cleanup and split into multiple files and easier #ifdefDaniel Stenberg
usage.
2004-03-30adjusted to the new dns cache function to hide more hostip internalsDaniel Stenberg
2004-03-30init the dns pointer to NULL for clarityDaniel Stenberg
2004-03-11Gisle Vanem's fixes to use CURL_SOCKET_BAD more instead of -1 for sockets.Daniel Stenberg
2004-03-10curl_socket_t mistakes cleanupDaniel Stenberg
2004-03-09Use curl_socket_t instead of int for holding sockets. The typedefs andDaniel Stenberg
defines are in setup.h.
2004-03-04When following to a new URL, we must make sure to call Curl_done() first,Daniel Stenberg
since the current connection must be taken care of properly before we move on. Christopher R. Palmer reported a problem he found due to this mistake.
2004-02-05compiler warning fix, compare struct pointers of the same typeDaniel Stenberg
2004-01-12Peter Sylvester brought code that now allows a callback to modified the URLDaniel Stenberg
even when the multi interface is used, and then libcurl will simulate a "follow location" to that new URL. Test 509 was added to test this feature.
2004-01-07updated year in the copyright stringDaniel Stenberg
2003-11-24FTPS support added as RFC2228 and the murray-ftp-auth-ssl draft describe itDaniel Stenberg
2003-10-18minor fix to not shadow a variableDaniel Stenberg
2003-10-13Clear the connection pointer after the async resolve has failed.Daniel Stenberg
This cures the problem reported by Giuseppe Attardi on October 12, 2003.
2003-10-04Based on a patch provided by Siddhartha Prakash Jain. In Curl_resolv() whenDaniel Stenberg
my_getaddrinfo() has been called (and wait has been set to TRUE), we check if the name already is resolved and if so don't return wait status to the parent. This can happen with IP-only names.
2003-09-21failing to resolve a name using ares must Curl_disconnect() the handleDaniel Stenberg
properly or risk getting into trouble!
2003-09-11For easy handles within multi handles, we share the DNS cache always.Daniel Stenberg
2003-08-20made curl_multi_info_read() set 'msgs_in_queue' to 0 even when it returnsDaniel Stenberg
NULL!
2003-08-05ares awareness/usage/support added. If configure --enable-ares is used, weDaniel Stenberg
build libcurl to use ares for asynch name resolves.
2003-07-15Dan Winship's fix to make the new auth stuff such as NTLM to work withDaniel Stenberg
the multi interface
2003-06-26use CURLDEBUG instead of MALLOCDEBUG for preprocessor conditionsDaniel Stenberg
2003-06-13Marty Kuhrt's #include fixes for VMSDaniel Stenberg
2003-04-29 Peter Kovacs provided a patch that makes the CURLINFO_CONNECT_TIME work fineDaniel Stenberg
when using the multi interface (too).
2003-03-13Philippe Raoult needed this to build on FreeBSDDaniel Stenberg