summaryrefslogtreecommitdiff
path: root/lib/connect.c
Commit message (Collapse)AuthorAgeFilesLines
* remove the CVSish $Id$ linesDaniel Stenberg2010-03-241-1/+0
|
* mark connection as connectedDaniel Stenberg2010-03-231-0/+1
| | | | | | | | | | Kenny To filed the bug report #2963679 with patch to fix a problem he experienced with doing multi interface HTTP POST over a proxy using PROXYTUNNEL. He found a case where it would connect fine but bits.tcpconnect was not set correct so libcurl didn't work properly. (http://curl.haxx.se/bug/view.cgi?id=2963679)
* fix printf-style format stringsYang Tse2010-02-041-2/+2
|
* Fix compiler warning: conditional expression is constantYang Tse2010-02-021-3/+3
|
* fix printf-style format stringsYang Tse2010-01-281-2/+2
|
* wrap long lines and do some indent policingDaniel Stenberg2010-01-221-6/+7
|
* - Made sure that the progress callback is repeatedly called at a regularDaniel Stenberg2010-01-111-16/+31
| | | | interval even during very slow connects.
* VMS specific preprocessor symbol checking adjustmentsYang Tse2009-12-301-1/+1
|
* - Tom Mueller correctly reported in bug report #2870221Daniel Stenberg2009-10-011-1/+1
| | | | | | | | (http://curl.haxx.se/bug/view.cgi?id=2870221) that libcurl returned an incorrect return code from the internal trynextip() function which caused him grief. This is a regression that was introduced in 7.19.1 and I find it strange it hasn't hit us harder, but I won't persue into figuring out exactly why.
* - Constantine Sapuntzakis: The current implementation will always setDaniel Stenberg2009-10-011-0/+7
| | | | | | | SO_SNDBUF to CURL_WRITE_SIZE even if the SO_SNDBUF starts out larger. The patch doesn't do a setsockopt if SO_SNDBUF is already greater than CURL_WRITE_SIZE. This should help folks who have set up their computer with large send buffers.
* add cast to silent compiler warning with 64bit systems.Gunter Knauf2009-08-291-1/+1
|
* - Eric Wong introduced curlx_nonblock() that the curl tool now (re-)uses forDaniel Stenberg2009-07-091-54/+1
| | | | | setting a file descriptor non-blocking. Used by the functionality Eric himself brough on June 15th.
* Curl_sndbufset is (at times) defined in the header, no need to do it again hereDaniel Stenberg2009-05-071-2/+0
|
* - Made the SO_SNDBUF setting for the data connection socket for ftp uploads asDaniel Stenberg2009-05-071-5/+3
| | | | well. See change 28 Apr 2009.
* Use build-time configured curl_socklen_t instead of socklen_tYang Tse2009-05-021-4/+4
|
* fix compiler warning: unused parameterYang Tse2009-04-301-0/+1
|
* - Constantine Sapuntzakis filed bug report #2783090Daniel Stenberg2009-04-281-0/+23
| | | | | | | (http://curl.haxx.se/bug/view.cgi?id=2783090) pointing out that on windows we need to grow the SO_SNDBUF buffer somewhat to get really good upload speeds. http://support.microsoft.com/kb/823764 has the details. Friends confirmed that simply adding 32 to CURL_MAX_WRITE_SIZE is enough.
* libcurl's memory.h renamed to curl_memory.hYang Tse2009-04-211-1/+1
|
* for portability reasons: s/inet_pton/Curl_inet_pton/Yang Tse2009-02-281-3/+5
|
* - Senthil Raja Velu reported a problem when CURLOPT_INTERFACE andDaniel Stenberg2009-02-271-107/+101
| | | | | CURLOPT_LOCALPORT were used together (the local port bind failed), and Markus Koetter provided the fix!
* changed HAVE_SIN6_SCOPE_ID define to HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID since ↵Gunter Knauf2008-12-301-1/+1
| | | | just found that ares already uses this define.
* Added the use of Watt-32 tcp/ip stack for Win32 targets.Gisle Vanem2008-12-161-4/+0
|
* Added some #ifdefs around header files and change the EAGAIN test toDan Fandrich2008-11-141-1/+3
| | | | fix compilation on Cell (reported by Jeff Curley).
* Refactor configure script detection of functions used to set sockets intoYang Tse2008-11-131-36/+19
| | | | non-blocking mode, and decouple function detection from function capability.
* Merged existing IPv4 and IPv6 Curl_ip2addr functions into a single oneYang Tse2008-11-061-1/+0
| | | | which now also takes a protocol address family argument.
* - Bug #2218480 (http://curl.haxx.se/bug/view.cgi?id=2218480) pointed out aDaniel Stenberg2008-11-031-22/+8
| | | | | | | problem with my CURLINFO_PRIMARY_IP fix from October 7th that caused a NULL pointer read. I also took the opportunity to clean up this logic (storing of the connection's IP address) somewhat as we had it stored in two different places and ways previously and they are now unified.
* Stop using in6addr_any because it's not available everywhere (e.g. Symbian)Dan Fandrich2008-10-241-1/+3
| | | | and isn't strictly needed here.
* fix compiler warningYang Tse2008-10-241-13/+18
|
* portability fix to avoid memory alignment problemsYang Tse2008-10-171-33/+55
|
* There's no guarantee that a socket was involved at this point, so avoid ↵Yang Tse2008-10-131-4/+2
| | | | | | displaying any error code. And on the other hand a message after setsockopt() certainly must use SOCKERRNO.
* fix compiler warningYang Tse2008-10-111-8/+11
|
* Allow compilation when no IPv6 stack is available.Dan Fandrich2008-10-101-0/+2
|
* Fixed the --interface option to work with IPv6 connections on glibcDan Fandrich2008-10-091-53/+58
| | | | | | systems supporting getifaddrs(). Also fixed a problem where an IPv6 address could be chosen instead of an IPv4 one for --interface when it involved a name lookup.
* fix compiler warningYang Tse2008-09-081-1/+1
|
* Fixed out of memory problems that caused torture test failures in testsDan Fandrich2008-08-261-8/+5
| | | | 1021 and 1067.
* - Phil Blundell added the CURLOPT_SCOPE option, as well as adjusted the URLDaniel Stenberg2008-07-301-0/+7
| | | | | | | parser to allow numerical IPv6-addresses to be specified with the scope given, as per RFC4007 - with a percent letter that itself needs to be URL escaped. For example, for an address of fe80::1234%1 the HTTP URL is: "http://[fe80::1234%251]/"
* Fixed display of the interface bind address in the trace output when it'sDan Fandrich2008-07-281-3/+1
| | | | an IPv6 address.
* use our *printf functions only.Gunter Knauf2008-06-081-0/+3
|
* - Added CURLINFO_PRIMARY_IP as a new information retrievable withDaniel Stenberg2008-06-061-2/+7
| | | | | | curl_easy_getinfo. It returns a pointer to a string with the most recently used IP address. Modified test case 500 to also verify this feature. The implementing of this feature was sponsored by Lenny Rachitsky at NeuStar.
* Removed some duplicated #includesDan Fandrich2008-05-211-3/+0
|
* - Introducing curl_easy_send() and curl_easy_recv(). They can be used to sendDaniel Stenberg2008-05-121-0/+44
| | | | | | and receive data over a connection previously setup with curl_easy_perform() and its CURLOPT_CONNECT_ONLY option. The sendrecv.c example was added to show how they can be used.
* - Jean-Francois Bertrand reported a libcurl crash with CURLOPT_TCP_NODELAYDaniel Stenberg2008-05-031-1/+8
| | | | | | | since libcurl used getprotobyname() and that isn't thread-safe. We now switched to use IPPROTO_TCP unconditionally, but perhaps the proper fix is to detect the thread-safe version of the function and use that. http://curl.haxx.se/mail/lib-2008-05/0011.html
* - Bart Whiteley provided a patch that made libcurl work properly when an appDaniel Stenberg2008-05-011-5/+19
| | | | | uses the CURLOPT_OPENSOCKETFUNCTION callback to create a unix domain socket to a http server.
* Added support for running on Symbian OS.Dan Fandrich2008-04-221-0/+5
|
* - Refactored a lot of timeout code into a few functions in an attempt to makeDaniel Stenberg2008-02-071-57/+81
| | | | | them all use the same (hopefully correct) logic to make it less error-prone and easier to introduce library-wide where it should be used.
* Change typecast due to ↵Yang Tse2008-01-081-2/+2
| | | | http://cool.haxx.se/cvs.cgi/curl/include/curl/curl.h.diff?r1=1.336&r2=1.337
* removed space after if and while before the parenthesis for better source codeDaniel Stenberg2007-11-051-25/+25
| | | | consistency
* Fix compiler warning: signed and unsigned type in conditional expressionYang Tse2007-10-171-5/+6
|
* Fix compiler warning: comparison between signed and unsignedYang Tse2007-10-171-2/+3
|
* Kim Rinnewitz reported that --local-port didn't work with TFTP transfers.Daniel Stenberg2007-10-041-0/+1
| | | | | | | | This happened because the tftp code always uncondionally did a bind() without caring if one already had been done and then it failed. I wrote a test case (1009) to verify this, but it is a bit error-prone since it will have to pick a fixed local port number and since the tests are run on so many different hosts in different situations I add it in disabled state.