- Dec 06, 2010
-
-
Daniel Stenberg authored
Cleanup fix after Kamil's commit 5c7c9a76
-
Heinrich Ko authored
ossl_connect_common() now checks whether or not 'struct connectdata->state' is equal 'ssl_connection_complete' and if so, will return CURLE_OK with 'done' set to 'TRUE'. This check prevents ossl_connect_common() from creating a new ssl connection on an existing ssl session which causes openssl to fail when it tries to parse an encrypted TLS packet since the cipher data was effectively thrown away when the new ssl connection was created. Bug: http://curl.haxx.se/mail/lib-2010-11/0169.html
-
Kamil Dudka authored
It helps to prevent a hangup with some FTP servers in case idle session timeout has exceeded. But it may be useful also for other protocols that send any quit message on disconnect. Currently used by FTP, POP3, IMAP and SMTP.
-
Yang Tse authored
-
- Dec 05, 2010
-
-
Daniel Stenberg authored
When looping in this function and checking for the timeout being expired, it was not updating the reference time when calculating the timediff since previous round which made it think each subsequent loop to have taken longer than it actually did. I also modified the function to use the generic Curl_timeleft() function instead of the custom logic. Bug: http://curl.haxx.se/bug/view.cgi?id=3112579
-
Daniel Stenberg authored
When send() and recv() fail, we now store the errno value to allow the app to access it. Bug: http://curl.haxx.se/bug/view.cgi?id=3128121 Reported by: Yuri
-
Guenter Knauf authored
-
- Dec 04, 2010
-
-
Yang Tse authored
-
- Dec 03, 2010
- Dec 02, 2010
- Dec 01, 2010
- Nov 30, 2010
- Nov 28, 2010
- Nov 26, 2010
- Nov 25, 2010
- Nov 24, 2010
-
-
Yang Tse authored
-
- Nov 23, 2010
-
-
Yang Tse authored
Ensure that spurious results from system's getaddrinfo() ares not propagated by Curl_getaddrinfo_ex() into the library. Also ensure that the ai_addrlen member of Curl_getaddrinfo_ex()'s output linked list of Curl_addrinfo structures has appropriate family-specific address size.
-
- Nov 22, 2010
-
-
Kamil Dudka authored
... not the proxy port. It makes no difference unless a proxy is used.
-
- Nov 20, 2010
-
-
Yang Tse authored
Winsock builds clobber some errno.h defines in setup_once.
-
- Nov 19, 2010
-
-
Matthias Bolte authored
On Windows, translate WSAGetLastError() to errno values as GNU TLS does it internally, too. This is necessary because send() and recv() on Windows don't set errno when they fail but GNU TLS expects a proper errno value. Bug: http://curl.haxx.se/bug/view.cgi?id=3110991
-
- Nov 14, 2010
-
-
Daniel Stenberg authored
When no timeout is set, we call the socket_ready function with a timeout value of 0 during handshake, which makes it loop too much/fast in this function. It also made this function return CURLE_OPERATION_TIMEDOUT wrongly on a slow handshake. However, the particular bug report that highlighted this problem is not solved by this fix, as this fix only makes the more proper error get reported instead. Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594150 Reported by: Johannes Ernst
-
- Nov 13, 2010
-
-
Julien Chaffraix authored
This makes it easier to spot the enum values from the variables. Removed some unneeded DEBUGASSERT added in the previous commit.
-