- Dec 06, 2011
-
-
Daniel Stenberg authored
This is a left-over fix from commit b7e242de that Tom Wright suggested. Reported by: Ward Willats
-
Daniel Stenberg authored
If no SSLv2 was detected in OpenSSL by configure, then we enforce the OPENSSL_NO_SSL2 define as it seems some people report it not being defined properly in the OpenSSL headers.
-
- Dec 05, 2011
-
-
Daniel Stenberg authored
If the option is set to 0, the default timeout will be used - which in modern libcurl versions equals 300 seconds (== 5 minutes). Bug: http://curl.haxx.se/mail/lib-2011-12/0051.html Reported by: Vladimir Grishchenko
-
Rob Ward authored
Adds a timer based off of CURLINFO_TOTAL_TIME that is used to perform certain actions after a minimum amount of time has passed using the progress function. As a consequence the curl handle is now also passed into the progress function. Progress example now also includes an example of how to retreive the TOTAL_TIME and print it out.
-
Daniel Stenberg authored
8 more bugs, 5 more contributors
-
Daniel Stenberg authored
When a 32 digit hex key is given as a hostkey md5 checksum, the code would still run it against the knownhost check and not properly acknowledge that the md5 should then be the sole guide for. The verbose output now includes the evaluated MD5 hostkey checksum. Some related source code comments were also updated. Bug: http://curl.haxx.se/bug/view.cgi?id=3451592 Reported by: Reza Arbab
-
Daniel Stenberg authored
As there are different return codes for host vs proxy errors, this function now properly returns the code properly depending on what was attempted to get resolved. Bug: http://curl.haxx.se/mail/archive-2011-12/0010.html Reported by: Jason Liu
-
Daniel Stenberg authored
When making a distinction which return code to return, the code previously only regarded HTTP proxies to be proxies and thus return host-related errors for failures on other proxy types than HTTP. Now all proxy types will be considered proxies...
-
Daniel Stenberg authored
Keep track of which sockets that are the result of accept() calls and refuse to call the closesocket callback for those sockets. Test case 596 now verifies that the open socket callback is called the same number of times as the closed socket callback for active FTP connections. Bug: http://curl.haxx.se/mail/lib-2011-12/0018.html Reported by: Gokhan Sengun
-
Daniel Stenberg authored
When the new socket is created for an active connection, it is now done using the open socket callback. Test case 596 was modified to run fine, although it hides the fact that the close callback is still called too many times, as it also gets called for closing sockets that were created with accept().
-
Daniel Stenberg authored
Moved out into a separate function to work as a "generic" socket() replacement.
-
- Dec 04, 2011
-
-
Daniel Stenberg authored
test 595: for passive FTP test 596: for active FTP
-
- Dec 02, 2011
-
-
Jason Glasgow authored
Ensure that CURLE_OK is returned if setting the name servers is successfull.
-
Daniel Stenberg authored
If the socket callback function pointer hasn't been set, we must not attempt to use it. Commit adc88ca2 made it more likely to occur.
-
Jason Glasgow authored
If the first name server is not available, the multi interface does not invoke the socket_cb when the DNS request to the first name server timesout. Ensure that the list of sockets are always updated after calling Curl_resolver_is_resolved. This bug can be reproduced if Curl is complied with --enable_ares and your code uses the multi socket interfaces and the CURLMOPT_SOCKETFUNCTION option. To test try: iptables -I INPUT \ -s $(sed -n -e '/name/{s/.* //p;q}' /etc/resolv.conf)/32 \ -j REJECT and then run a program which uses the multi-interface.
-
- Dec 01, 2011
-
-
Daniel Stenberg authored
-
- Nov 30, 2011
-
-
Steve Holme authored
Changed the eob detection to work across the whole of the buffer so that lines that begin with a dot (which the server will have escaped) are passed to the client application correctly.
-
Yang Tse authored
-
Yang Tse authored
Using libtool 1.5.x (x < 26) with autoconf 2.6x or later generates warnings due to some libtool variables not following naming convention for variables that will be cached. This is addressed renaming a couple of variables to make these follow expected naming convention.
-
Daniel Stenberg authored
5 bugfixes and 1 new contributor
-
- Nov 29, 2011
-
-
Yang Tse authored
-
Yang Tse authored
libidn option adjusted in order to use pkg-config info when available in a similar way as we already do for other libraries.
-
Daniel Stenberg authored
By making sure the function can detect an "end of body" sequence immediately on the first line, test 811 is now enabled.
-
Daniel Stenberg authored
Previously the log function would just filter out all CR and LF occurances from the log to make it more readable. This had the downside that it made it very hard to see CR LFs when they actually matters. Now, they're instead converted to "[CR]" and "[LR]" in the log to become apparent to readers.
-
- Nov 28, 2011
-
-
Daniel Stenberg authored
Curl_pop3_write() now has a state machine that scans for the end of a POP3 body so that the CR LF '.' CR LF sequence can come in everything from one up to five subsequent packets. Test case 810 is modified to use SLOWDOWN which makes the server pause between each single byte and thus makes the POP3 body get sent to curl basically one byte at a time.
-
Daniel Stenberg authored
Test 815 is disabled for now since libcurl currently doesn't unescape such lines the way it should. See mail: http://curl.haxx.se/mail/lib-2011-11/0324.html
-
- Nov 27, 2011
-
-
Daniel Stenberg authored
configure.ac:1349: error: possibly undefined macro: PKG_CONFIG_LIBDIR Obviously this is not a problem with pkg-config 0.26 but older versions seem to show this. Fix suggested by: Kamil Dudka Reported by: Guenter Bug: http://curl.haxx.se/mail/lib-2011-11/0298.html
-
- Nov 25, 2011
-
-
Daniel Stenberg authored
"Active FTP hangs if server does not open data connection" The server first sends a 150 and then when libcurl waits for the data transfer, the server sends a 425.
-
Mark Brand authored
-
Daniel Stenberg authored
The protocol parts for these tests do not include QUIT simply because the error is CURLE_OPERATION_TIMEDOUT (28) which is a generic timeout error without specificly saying for which connection it concerns, and for timeouts libcurl marks the control channel as "invalid". As this test case times out for the data connection it could still use the control channel.
-
Yang Tse authored
-
Jonas Schnelli authored
-
Daniel Stenberg authored
Added convenience macro to use to check if a handle is using a shared SSL session, and fixed so that Curl_ssl_close_all() doesn't lock when the session isn't shared.
-
Yang Tse authored
-
Yang Tse authored
Skip a floating point addition operation when integral part of time difference is zero. This avoids potential floating point addition rounding problems while preserving decimal part value.
-
Daniel Stenberg authored
Macros that look like function calls need to be made so that we can use semicolons properly for indentation and for reducing the risk for mistakes when using them.
-
Laurent Rabret authored
1) enables the Window Size option 2) allows the server to enable the echo mode 3) allows an app using libcurl to disable the default binary mode Signed-off-by: Laurent Rabret
-
- Nov 24, 2011
-
-
Daniel Stenberg authored
-
Jonas Schnelli authored
By setting PROTOPT_NOURLQUERY in the protocol handler struct, the protocol will get the "query part" of the URL cut off before the data is handled by the protocol-specific code. This makes libcurl adhere to RFC3986 section 2.2. Test 1220 is added to verify a file:// URL with query-part.
-
Daniel Stenberg authored
Experience has shown that the symbols-in-versions file is very useful to applications that want to build with a wide range of libcurl versions. It is however easy to get it wrong and the source gets a bit messy with all the fixed numerical comparisions. The point of this script is to provide an easy-to-use macro for libcurl- using applications to do preprocessor checks for specific libcurl defines, and yet make the code clearly show what the macro is used for.
-