Daniel Stenberg [Tue, 7 Aug 2007 21:14:31 +0000 (21:14 +0000)]
Usage of the BCURLOPT_PROGRESSFUNCTION callback is not recommended when using
the multi interface, but having the comment in here caused more questions than
we fixed problems so I remove it now. It still works fine.
Dan Fandrich [Fri, 3 Aug 2007 22:46:59 +0000 (22:46 +0000)]
Refactored CreateConnection() somewhat to reduce its length by splitting
it into a few new functions.
Fixed a few leaks in out of memory conditions, including for test case 231.
Gunter Knauf [Fri, 3 Aug 2007 11:24:22 +0000 (11:24 +0000)]
Peteris Krumins pointed out that the standard MingW32 build depends on zlib; removed that, and added another option for zlib build, and renamed all other targets to reflect zlib dependency.
Daniel Stenberg [Thu, 2 Aug 2007 20:10:28 +0000 (20:10 +0000)]
Scott Cantor filed bug report #1766320
(http://curl.haxx.se/bug/view.cgi?id=1766320) pointing out that the libcurl
code accessed two curl_easy_setopt() options (CURLOPT_DNS_CACHE_TIMEOUT and
CURLOPT_DNS_USE_GLOBAL_CACHE) as ints even though they're documented to be
passed in as longs, and that makes a difference on 64 bit architectures.
Daniel Stenberg [Thu, 2 Aug 2007 14:09:08 +0000 (14:09 +0000)]
Dmitriy Sergeyev reported a regression: resumed file:// transfers broke
after 7.16.2. This is much due to the different treatment file:// gets
internally, but now I added test 231 to make it less likely to happen again
without us noticing!
Daniel Stenberg [Wed, 1 Aug 2007 21:20:01 +0000 (21:20 +0000)]
Patrick Monnerat and I modified libcurl so that now it *copies* all strings
passed to it with curl_easy_setopt()! Previously it has always just refered
to the data, forcing the user to keep the data around until libcurl is done
with it. That is now history and libcurl will instead clone the given
strings and keep private copies.
Daniel Stenberg [Wed, 1 Aug 2007 12:58:04 +0000 (12:58 +0000)]
Greg Morse reported a problem with POSTing using ANYAUTH to a server requiring
NTLM, and he provided test code and a test server and we worked out a bug
fix. We failed to count sent body data at times, which then caused internal
confusions when libcurl tried to send the rest of the data in order to
maintain the same connection alive.
(and then I did some minor reformatting of code in lib/http.c)
Daniel Stenberg [Mon, 30 Jul 2007 22:53:18 +0000 (22:53 +0000)]
Peter O'Gorman pointed out (and fixed) that the non-blocking check in
configure made libcurl use blocking sockets on AIX 4 and 5, while that
wasn't the intention.
Daniel Stenberg [Sun, 29 Jul 2007 12:54:05 +0000 (12:54 +0000)]
Bug report #1759542 (http://curl.haxx.se/bug/view.cgi?id=1759542). A bad use
of a socket after it has been closed, when the FTP-SSL data connection is taken
down.
Dan Fandrich [Mon, 23 Jul 2007 18:51:22 +0000 (18:51 +0000)]
Implemented only the parts of Patrick Monnerat's OS/400 patch that renamed
some few internal identifiers to avoid conflicts, which could be useful on
other platforms.
Daniel Stenberg [Sat, 21 Jul 2007 21:48:58 +0000 (21:48 +0000)]
To allow more flexibility in FTP test cases, I've removed the enforced states
from the test server code as they served no real purpose. The test server is
here to serve for the test cases, not to attempt to function as a real server!
Daniel Stenberg [Fri, 20 Jul 2007 09:35:58 +0000 (09:35 +0000)]
Ralf S. Engelschall filed bug report #1757328
(http://curl.haxx.se/bug/view.cgi?id=1757328) and submitted a patch. It turns
out we broke login to FTP servers that don't require (nor understand) PASS
after the USER command
Dan Fandrich [Wed, 18 Jul 2007 00:27:13 +0000 (00:27 +0000)]
Use 512 bit keys to reduce the time taken to generate them. This shouldn't
really reduce security since in the common case of a daily automated build
the keys are only used for a single test run lasting a few minutes before
being deleted.
Dan Fandrich [Tue, 17 Jul 2007 21:53:38 +0000 (21:53 +0000)]
Fixed test cases 613 and 614 by improving the log postprocessor to handle
a new directory listing format that newer libssh2's can provide. This
is probably NOT sufficient to handle all directory listing formats that
server's can provide and should be revisited.
Daniel Stenberg [Tue, 17 Jul 2007 20:59:53 +0000 (20:59 +0000)]
Jofell Gallardo posted a libcurl log using FTP that exposed a bug which made
a control connection that was deemed "dead" to yet be re-used in a following
request. We must make sure the connection gets closed on this situation.
Daniel Stenberg [Mon, 16 Jul 2007 21:08:08 +0000 (21:08 +0000)]
45. libcurl built to support ipv6 uses getaddrinfo() to resolve host names.
getaddrinfo() sorts the response list which effectively kills how libcurl
deals with round-robin DNS entries. All details:
http://curl.haxx.se/mail/lib-2007-07/0168.html
initial suggested function to use for randomizing the response:
http://curl.haxx.se/mail/lib-2007-07/0178.html
Daniel Stenberg [Sat, 14 Jul 2007 22:39:22 +0000 (22:39 +0000)]
Added test case 540 and lib540.c, the 'proxyauth.c' test app posted by Shmulik
Regev on the libcurl mailing list on 10 Jul 2007, converted to a test case.
Daniel Stenberg [Fri, 13 Jul 2007 20:17:35 +0000 (20:17 +0000)]
Colin Hogben filed bug report #1750274
(http://curl.haxx.se/bug/view.cgi?id=1750274) and submitted a patch for the
case where libcurl did a connect attempt to a non-listening port and didn't
provide a human readable error string back.