aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2007-06-14Shmulik Regev fixed a flaw in the multi interface that occurred when doingDaniel Stenberg
HTTP CONNECT over a proxy
2007-06-14Remove duplicate code that was left in as part of 1.35. This codeJames Housley
only affected sftp_sendquote() for the "chgrp/chmod/chown" commands. This also fixed failure of test 614 on a system that previously failed.
2007-06-14Make our own definitions of the POLL* defiens and the pollfd struct only getDaniel Stenberg
done if the sys/poll.h file is missing, as we have seen machines with poll() present but without the header file and machines that don't get HAVE_POLL defined but that do have the sys/poll.h header file...
2007-06-14BUG FIX: When reading a directory listing that contains symlinksJames Housley
with the latest libssh2, the listing would be truncated at the symlink. Fix by looping on LIBSSH2_ERROR_EAGAIN, like the rest of the calls.
2007-06-13Restore functionality mistakenly removed in the previous commitJames Housley
2007-06-13libssh2_session_free() returns void. Fix "#endif".Gisle Vanem
2007-06-13Commit Tom Regner's code for SFTP create missing directories. This patchJames Housley
uses the --ftp-create-dirs flag to control if cURL will try and create directories that are specified in an upload path, but don't exist.
2007-06-13Add a define to protect the state machine from older versions of libssh2,James Housley
ie 0.14, that don't know about newer constants used in the state machine.
2007-06-12With lots of help from Rich Rauenza(?) in bug #1733119, we introduce a fairlyDaniel Stenberg
complicated work-around for 64bit HPUX compiles. We do the fix using inline static functions to make them follow the header file properly and thus get used fine in the test suite too etc.
2007-06-12* Updates for the latest version of libssh2, specificallyJames Housley
libssh2_sftp_shutdown() and libssh2_session_free() can now return LIBSSH2_ERROR_EAGAIN. * Fix the _send() and _recv() return values so non-blocking works
2007-06-12While connect and transfer works fine in non-blocking mode for the testJames Housley
suite, transfer fails in the real world. So after connect set to blocking as full non-blocking is migrated out.
2007-06-12Prevent the state machine from getting stuck in SSH_AUTH_HOST_INITJames Housley
2007-06-12Convert Curl_ssh_connect() to run in a state machine forJames Housley
LIBSSH2_APINO >= 200706012030. More to come...
2007-06-12remove unused field in the state structDaniel Stenberg
2007-06-11restore the correct timeout time that my previous commit brokeDaniel Stenberg
2007-06-11Properly wait for the c-ares resolve to complete, hopefully the cure forDaniel Stenberg
bug #1733955
2007-06-11constify 'hostname' in init_thread_sync_data(). Simply clearGisle Vanem
the whole 'tsd' structure on exit in destroy_thread_sync_data().
2007-06-11Squelsh some warnings for libssh older than 0.1.5.Gisle Vanem
2007-06-08Curl_scp_done() needs to call libssh2_channel_free() to prevent aJames Housley
memory leak, and it is the right thing to do.
2007-06-08Fix to work with the latest CVS version of libssh2James Housley
* As of (LIBSSH2_APINO >= 200706012030) there are not *nb() functions * As of (LIBSSH2_APINO >= 200706012030) most libssh2_*() functions can return LIBSSH2_ERROR_EAGAIN to indicate that the call would block. To make the code work as previously, blocking, all the code has been updated so that when (LIBSSH2_APINO >= 200706012030) it loops simulating blocking. This allows the existing code to function and not hold up the upcoming release.
2007-06-07Fixed a compiler warning on uClibc.Dan Fandrich
2007-06-05if we read zero bytes from the proxy, the connection is broken and we needDaniel Stenberg
to bail out
2007-06-05mark connect failures as non-connected when ConnectPlease() fails, like whenDaniel Stenberg
a connection through a socks proxy doesn't work
2007-06-01ouch, two conditionals were turned backwards!Daniel Stenberg
2007-06-01do the update timer stuff even when CURLM_CALL_MULTI_PERFORM is returnedDaniel Stenberg
2007-05-31When transferring 500 downloads in parallel with a c-ares enabled build onlyDaniel Stenberg
to find that it crashed miserably, and this was due to some select()isms left in the code. This was due to API restrictions in c-ares 1.3.x, but with the upcoming c-ares 1.4.0 this is no longer the case so now libcurl runs much better with c-ares and the multi interface with > 1024 file descriptors in use.
2007-05-31Feng Tu made (lib)curl support "upload" resuming work for file:// URLs.Daniel Stenberg
2007-05-30Added CURLMOPT_MAXCONNECTS which is a curl_multi_setopt() option for settingDaniel Stenberg
the maximum size of the connection cache maximum size of the multi handle.
2007-05-30remove really annoying debug output that makes life miserable when you doDaniel Stenberg
hundreds of parallel transfers...
2007-05-26Primarily this fixes an off-by-one buffer overwrite (rare but still existing).Daniel Stenberg
I also switched from calloc() to malloc() as a minor performance boost since the rest of the code fills in the structs fine anyway - and they must for the case when we use the stack-based auto variable array instead of the allocated one. I made the loop filling in poll_fds[] break when poll_nfds is reached as a minor speed improvement.
2007-05-25Rob Crittenden fixed bug #1705802Daniel Stenberg
(http://curl.haxx.se/bug/view.cgi?id=1705802), which was filed by Daniel Black identifying several FTP-SSL test cases fail when we build libcurl with NSS for TLS/SSL. Listed as #42 in KNOWN_BUGS.
2007-05-24Song Ma filed bug report #1724016Daniel Stenberg
(http://curl.haxx.se/bug/view.cgi?id=1724016) noticing that downloading glob-ranges for TFTP was broken in CVS.
2007-05-24stay within 80 colsDaniel Stenberg
2007-05-22Andre Guibert de Bruet fixed a memory leak when PKCS #12 parsing failedDaniel Stenberg
2007-05-22Andre Guibert de Bruet fixed a memory leak in the function that verifies theDaniel Stenberg
peer's name in the SSL certificate when built for OpenSSL. The leak happens for libcurls with CURL_DOES_CONVERSIONS enabled that fail to convert the CN name from UTF8.
2007-05-20WaitForSingleObject() uses a millisecond timeout and CURL_TIMEOUT_RESOLVE isDaniel Stenberg
counted in seconds...
2007-05-18better fix for the dl/ul countersDaniel Stenberg
2007-05-18Feng Tu reported that curl -w did wrong on TFTP transfers inDaniel Stenberg
bug report #1715394 (http://curl.haxx.se/bug/view.cgi?id=1715394), and the transfer-related info "variables" were indeed overwritten with zeroes wrongly and have now been adjusted. The upload size still isn't accurate.
2007-05-18bail out with error codes on failuresDaniel Stenberg
2007-05-17Feng Tu pointed out a division by zero error in the TFTP connect timeoutDaniel Stenberg
code for timeouts less than fice seconds, and also provided a fix for it.
2007-05-17Added support for compiling under Minix 3.1.3 using ACK.Dan Fandrich
2007-05-15Added call to setvbuf (disabled by default for speed) to flush theDan Fandrich
memdebug log file after every line and avoid losing the last few log entries if curl crashes.
2007-05-15Added support for quote commands before a transfer using SFTP and testDan Fandrich
case 614. Allow SFTP quote commands chmod, chown, chgrp to set a value of 0.
2007-05-09Kristian Gunstone fixed a problem where overwriting an uploaded file withDan Fandrich
sftp didn't truncate it first, which would corrupt the file if the new file was shorter than the old.
2007-05-08CURLE_FTP_COULDNT_STOR_FILE is now known as CURLE_UPLOAD_FAILED. This isDaniel Stenberg
because I just made SCP uploads return this value if the file size of the upload file isn't given with CURLOPT_INFILESIZE*. Docs updated to reflect this news, and a define for the old name was added to the public header file.
2007-05-07James Bursa fixed a bug in the multi handle code that made the connectionDaniel Stenberg
cache grow a bit too much, beyond the normal 4 * easy_handles.
2007-05-02Anders Gustafsson remarked that requiring CURLOPT_HTTP_VERSION set to 1.0Daniel Stenberg
when CURLOPT_HTTP200ALIASES is used to avoid the problem mentioned below is not very nice if the client wants to be able to use _either_ a HTTP 1.1 server or one within the aliases list... so starting now, libcurl will simply consider 200-alias matches the to be HTTP 1.0 compliant.
2007-05-02Fixed an out of memory handling issue with HTTP pipelines.Dan Fandrich
2007-05-02Tobias Rundstrom reported a problem they experienced with xmms2 and recentDaniel Stenberg
libcurls, which turned out to be the 25-nov-2006 change which treats HTTP responses without Content-Length or chunked encoding as without bodies. We now added the conditional that the above mentioned response is only without body if the response is HTTP 1.1.
2007-05-02- Set the timeout for easy handles to expire really soon after addition orDaniel Stenberg
when CURLM_CALL_MULTI_PERFORM is returned from curl_multi_socket*/perform, to make applications using only curl_multi_socket() to properly function when adding easy handles "on the fly". Bug report and test app provided by Michael Wallner.