Daniel Stenberg
7a86740afd
- James Housley made SFTP uploads use libssh2's non-blocking API (if available)
2007-04-18 20:11:47 +00:00
Daniel Stenberg
8e719e3ef5
- Prevent the internal progress meter from updating more frequently than once
...
per second.
2007-04-18 20:02:41 +00:00
Gunter Knauf
f30ae93a1f
added ranlib when library is created with ar.
2007-04-16 20:54:56 +00:00
Daniel Stenberg
76627b322e
- Robert Iakobashvil added curl_multi_socket_action() to libcurl, which is a
...
function that deprecates the curl_multi_socket() function. Using the new
function the application tell libcurl what action that was found in the
socket that it passes in. This gives a significant performance boost as it
allows libcurl to avoid a call to poll()/select() for every call to
curl_multi_socket*().
2007-04-16 16:34:08 +00:00
Yang Tse
b039d883e5
proper fix for compiler warning
2007-04-13 08:45:07 +00:00
Yang Tse
b3401ddbad
Take in account that it can be built with compiler debug info and
...
without the curl memory debugging leak detection code enabled.
2007-04-13 08:22:56 +00:00
Yang Tse
038fe54e21
fix compiler warning
2007-04-13 07:57:31 +00:00
Daniel Stenberg
c38c339480
Song Ma found a memory leak in the if2ip code if you pass in an interface
...
name longer than the name field of the ifreq struct (typically 6 bytes), as
then it wouldn't close the used dummy socket.
2007-04-12 20:09:19 +00:00
Dan Fandrich
70cce4cddd
Work around an out of memory situation in Curl_ftp_done instead of
...
returning an error code, to allow connections to be torn down
cleanly since this function can be called AFTER an OOM situation
has already been reached.
2007-04-12 01:26:02 +00:00
Yang Tse
84c5e846b3
convenience SIG_ATOMIC_T macro definition
2007-04-11 11:02:13 +00:00
Dan Fandrich
47f044265e
Fixed some out of memory handling issues.
2007-04-11 00:25:41 +00:00
Dan Fandrich
d46d995766
Fixed some out of memory handling issues.
2007-04-10 22:52:50 +00:00
Daniel Stenberg
5daa6b9367
Ravi Pratap provided fixes for HTTP pipelining
2007-04-10 20:46:40 +00:00
Yang Tse
5be7b543d8
Update NTLM flag and description
2007-04-10 02:17:06 +00:00
Dan Fandrich
910ee13b20
Fixed an out of memory handling issue.
2007-04-10 00:38:41 +00:00
Yang Tse
be5ade5c7a
VC8+ (VS2005+) has C99 variadic macro support
2007-04-09 17:46:01 +00:00
Yang Tse
0e05a6329a
fix out of memory handling issue
2007-04-08 22:49:38 +00:00
Daniel Stenberg
c518c52aba
Nick Zitzmann did ssh.c cleanups
2007-04-08 22:44:21 +00:00
Yang Tse
a11374d994
fix out of memory handling issue
2007-04-07 17:25:19 +00:00
Yang Tse
d9e89e170f
fix out of memory handling issue
2007-04-07 04:51:35 +00:00
Yang Tse
47594be5c0
fix compiler warning
2007-04-07 00:38:46 +00:00
Yang Tse
0d635a1119
fix out of memory handling issue
2007-04-06 20:53:15 +00:00
Dan Fandrich
e9ffa9a3b8
Fixed a few memory leaks in OOM conditions.
...
Made libssh2 logging more verbose when debugging is enabled.
2007-04-06 06:32:05 +00:00
Yang Tse
c895dc8a19
runtests -t discovered this out of memory handling issues
2007-04-05 11:09:46 +00:00
Dan Fandrich
c321b9f704
Fixes some more out of memory handling bugs.
2007-04-04 23:41:35 +00:00
Dan Fandrich
7e74349b86
Fixed file handle leak in OOM condition.
2007-04-04 22:49:12 +00:00
Yang Tse
8fe9376d54
move WinSock definitions of EBADF, EINTR, EINVAL and EAFNOSUPPORT to setup_once.h
2007-04-04 06:06:36 +00:00
Dan Fandrich
7d48d851a2
Fixed a memory leak and improper shutdown on SFTP post-quote command failure.
2007-04-04 00:46:16 +00:00
Daniel Stenberg
990b15e402
Rob Jones fixed better #ifdef'ing for a bunch of #include lines.
2007-04-03 20:54:37 +00:00
Yang Tse
584f3639e3
update copyright year
2007-04-03 18:25:18 +00:00
Yang Tse
f1b4f5e2ae
fix MSDOS symbol check
2007-04-03 15:35:19 +00:00
Yang Tse
bcf0af9ddb
recover code simplification lost with last commit
2007-04-03 13:26:05 +00:00
Gisle Vanem
c420113795
DOS targets do have setmode().
2007-04-03 10:18:38 +00:00
Daniel Stenberg
20d33ad7e5
Nick Zitzmann made CURLOPT_POSTQUOTE work for SFTP as well.
2007-04-02 21:24:05 +00:00
Yang Tse
e4d4ee8db5
fix compiler warning
2007-04-02 03:38:18 +00:00
Yang Tse
8a7d58378b
fix compiler warning
2007-04-02 02:13:26 +00:00
Daniel Stenberg
6c6e4710b5
Robert Iakobashvili made curl_multi_remove_handle() a lot faster when many
...
easy handles are added to a multi handle, by avoiding the looping over all
the handles to find which one to remove.
2007-04-01 08:24:23 +00:00
Daniel Stenberg
5e7164f87a
Matt Kraai provided a patch that makes curl build on QNX 6 fine again. Mostly
...
by letting configure check for setmode and ifdef on HAVE_SETMODE. NOTE: non-
configure platforms that havve setmode() needs their hard-coded config.h files
fixed. I fixed the src/config-win32.h.
2007-04-01 07:51:30 +00:00
Daniel Stenberg
c1f117700a
Pointless to check for non-NULL pointers that already have been dereferenced
...
and they have to be non-NULL long before this check.
CID 22 in the coverity.com scan
2007-03-31 21:10:05 +00:00
Daniel Stenberg
7ea90c46eb
avoid dereferencing a NULL pointer by setting a default word to lookup in case
...
it is missing
CID 5 in the coverity.com scan
2007-03-31 21:06:40 +00:00
Daniel Stenberg
4d9e24d1e4
Better deal with NULL pointers.
...
CID 3 and 4 from the coverity.com scan.
2007-03-31 21:01:18 +00:00
Daniel Stenberg
d27813c2dd
*** empty log message ***
2007-03-31 20:46:47 +00:00
Daniel Stenberg
371a25eee9
When curl_easy_duphandle() fails because it can't get or make a connection
...
cache, we must make sure not to derefence the NULL pointer...
CID 6 coverity.com scan
2007-03-31 11:28:03 +00:00
Daniel Stenberg
e535a71c71
The info types cannot be checked for explicity by ANDing the types since they
...
have not been properly defined to allow this! Instead of changing the defines
and break the ABI/API, I opted to modify the code to check for exact type
matches.
CID 10 coverity.com scan
2007-03-31 11:12:28 +00:00
Daniel Stenberg
b9e5fecf5f
Check for a NULL easy->easy_conn in multi_getsock() since it can in fact
...
happen when curl_multi_remove_handle() is called.
CID 13. coverity.com scan
2007-03-31 10:56:07 +00:00
Daniel Stenberg
3af08472ad
Removed check for ftpcode being NULL, as later it is derefenced unconditionally
...
anyway and we can just as well rely on it being valid.
CID 12, coverity.com scan
2007-03-31 10:39:54 +00:00
Daniel Stenberg
75db459f0a
Pointer "conn" dereferenced before NULL check. found by coverity.com scan
2007-03-30 20:54:32 +00:00
Daniel Stenberg
74e54c5a49
Pointer "cur_pos" dereferenced before NULL check, found by coverity.com scan.
...
Removed the NULL check since the pointer must be valid already.
2007-03-30 20:52:42 +00:00
Daniel Stenberg
3dcc7202d5
dead code removed, found by the coverity.com scan
2007-03-30 19:59:15 +00:00
Dan Fandrich
ffb11ad5c6
Don't tear down the ftp connection if the maximum filesize was exceeded
...
and added tests 290 and 291 to check.
2007-03-30 01:13:47 +00:00
Dan Fandrich
7763bb9172
Send an EOF message before closing a channel, as recommended by RFC4254.
...
Enable libssh2 tracing when ssh debugging is turned on.
2007-03-29 19:17:18 +00:00
Yang Tse
a1e5c621c0
fix compiler warning
2007-03-29 12:29:32 +00:00
Yang Tse
3d5a8515a6
fix error introduced in last commit
2007-03-29 00:11:55 +00:00
Yang Tse
bfa0f8c6c2
fix compiler warning
2007-03-28 19:05:43 +00:00
Yang Tse
869d192ffc
Improve detection of socket events which allow a further recv() call
...
to complete with no delay and actually find out what happened with
the socket. As well as detection of socket send()able condition.
This also allows removal of a Cygwin specific block of code.
2007-03-28 18:59:42 +00:00
Gisle Vanem
60bc103a78
djgpp uses gcc which has varadic macros.
2007-03-28 04:48:11 +00:00
Gisle Vanem
8a0a7ce3a8
Fix compiler warning.
2007-03-28 04:44:14 +00:00
Gisle Vanem
25c064c888
Simplified code around 'tld_errmsg' a bit.
2007-03-28 04:23:33 +00:00
Gunter Knauf
45b2577974
added variadic macro stuff.
2007-03-27 19:27:43 +00:00
Yang Tse
d58c7a8bdd
Update message
2007-03-27 18:16:35 +00:00
Yang Tse
eed47311f8
New Internal wrapper function Curl_select() around select (2), it
...
uses poll() when a fine poll() is available, so now libcurl can be
built without select() support at all if a fine poll() is available.
2007-03-27 18:15:26 +00:00
Yang Tse
59eaae42b8
don't retry select() call upon unrecoverable error EBADF
2007-03-27 15:22:49 +00:00
Yang Tse
4294cac701
Platforms that lack autotools support should define HAVE_VARIADIC_MACROS_C99
...
and/or HAVE_VARIADIC_MACROS_GCC for specific compiler versions that support
variadic macros with C99 style and/or old gcc style in their specific config.h
file.
If previous definitions are not done, even when aplicable, and --disable-verbose
is used, the fallback (void) method will be used to define infof, avoiding the
inclusion of unwanted strings in the resulting library/executable.
2007-03-27 04:17:26 +00:00
Yang Tse
fba4cd0e62
Internal function Curl_select() renamed to Curl_socket_ready()
2007-03-26 23:23:46 +00:00
Gunter Knauf
8272abef28
changed link lib order to make nlmconv happy.
2007-03-26 17:01:35 +00:00
Gunter Knauf
5fbc93c3eb
added CVS Id tag.
2007-03-26 01:54:06 +00:00
Gunter Knauf
8851df41c5
fixed build to use compiler-default lib extension.
2007-03-26 01:50:44 +00:00
Daniel Stenberg
6c56b5301f
- Daniel Johnson fixed multi code to traverse the easy handle list properly.
...
A left-over bug from the February 21 fix.
2007-03-25 08:16:16 +00:00
Yang Tse
fa0780bb91
fix compiler warning
2007-03-25 03:20:17 +00:00
Yang Tse
f08ac86834
fix compiler warning
2007-03-25 02:30:58 +00:00
Yang Tse
d6eca89229
fix compiler warning
2007-03-25 01:59:52 +00:00
Dan Fandrich
2bd1d7e996
Fixed a couple of compile problems.
2007-03-24 17:23:01 +00:00
Dan Fandrich
0dd1219668
Fixed a memory leak when specifying a proxy with a file: URL and added
...
test case 288 to verify it.
2007-03-24 02:15:20 +00:00
Daniel Stenberg
3d528e1b15
add missing state name for the debug state switch output
2007-03-23 22:25:04 +00:00
Daniel Stenberg
f9a339a225
fix debug message
2007-03-23 22:24:33 +00:00
Dan Fandrich
0043e87014
Added --pubkey option to curl and made --key also work for SCP/SFTP,
...
plus made --pass work on an SSH private key as well.
2007-03-23 17:59:40 +00:00
Yang Tse
0f634a0c89
fix yet another leftover in previous commit
2007-03-23 12:13:08 +00:00
Yang Tse
047cd1a533
fix leftover in previous commit
2007-03-23 12:09:16 +00:00
Yang Tse
f9eb61e90a
fix compiler warning: empty body in an if/else-statement
2007-03-23 12:01:19 +00:00
Yang Tse
34afb0b257
Change spelling, ONE_TERRABYTE -> ONE_TERABYTE
...
Shave off a couple of function calls in the part of
Curl_pgrsUpdate() which is always executed when called.
Fix a couple of comments.
2007-03-23 04:23:53 +00:00
Dan Fandrich
6bb9bd8b69
Don't shut down sftp in an error if it was never started.
2007-03-23 00:03:34 +00:00
Dan Fandrich
3229a80c9f
Fixed unused variable compiler warning.
2007-03-22 17:58:01 +00:00
Dan Fandrich
5eba84eed3
Use C99-style variadic macros when available.
2007-03-22 17:18:41 +00:00
Yang Tse
4fb483012c
Add a couple of local macros to improve code readability.
...
For completeness sake, wait_ms() might also get interrupted when
experimental CURL_ACKNOWLEDGE_EINTR is defined.
2007-03-22 15:32:28 +00:00
Yang Tse
90ce18019c
reverted back to previous version => http://curl.haxx.se/mail/lib-2007-03/0258.html
2007-03-21 13:09:39 +00:00
Yang Tse
fe10cb2ef5
avoid the use of variadic macros for greater portability
2007-03-21 08:17:13 +00:00
Yang Tse
842be6c52f
fix compiler warning: implicit conversion from "long" to "int"
2007-03-21 07:29:03 +00:00
Yang Tse
e4b754f64e
Fixed: When a signal was caught awaiting for an event using Curl_select()
...
or Curl_poll() with a non-zero timeout both functions would restart the
specified timeout. This could even lead to the extreme case that if a
signal arrived with a frecuency lower to the specified timeout neither
function would ever exit.
Added experimental symbol definition check CURL_ACKNOWLEDGE_EINTR in
Curl_select() and Curl_poll(). When compiled with CURL_ACKNOWLEDGE_EINTR
defined both functions will return as soon as a signal is caught. Use it
at your own risk, all calls to these functions in the library should be
revisited and checked before fully supporting this feature.
2007-03-20 20:00:40 +00:00
Gisle Vanem
34ed4642ec
Remove unneeded 'HAVE_*' defines.
2007-03-20 16:30:14 +00:00
Yang Tse
072a8b2955
Bryan Henderson fixed the progress function so that it can get called
...
more frequently allowing same calling frecuency for the client progress
callback, while keeping the once a second frecuency for speed calculations
and internal display of the transfer progress.
2007-03-19 12:02:33 +00:00
Yang Tse
da2b75a026
Fix compiler warning/error: ISO C90 forbids mixed declarations and code
2007-03-18 17:29:24 +00:00
Yang Tse
0e2d3b7b6c
Code refactoring, extracting a new function wait_ms() from Curl_select and
...
Curl_poll() which is called whenever not a single valid file descriptor is
passed to these functions.
Improve readibility using a poll() macro to replace WSApoll().
2007-03-18 04:51:40 +00:00
Gisle Vanem
46a50aa001
Remove unneeded 'HAVE_*' defines. Detect i386 OS-target (gcc).
2007-03-17 18:19:15 +00:00
Dan Fandrich
9189ac1141
Fixed some memory leaks in various error paths.
2007-03-15 21:25:56 +00:00
Dan Fandrich
8605321d06
Fixed a memory leak.
2007-03-15 00:04:41 +00:00
Daniel Stenberg
d314453037
yassl doesn't have SSL_get_shutdown() in its OpenSSL() layer so we check for
...
it and avoid it, even if this cripples the CCC command
2007-03-14 23:40:46 +00:00
Dan Fandrich
9cb69f77f1
Fixed a NULL pointer dereference on sftp initialization failure.
...
Added some more debug logs.
2007-03-14 02:04:17 +00:00
Gisle Vanem
0188493d54
Use Curl_inet_pton() instead of inet_pton().
2007-03-13 12:52:28 +00:00
Yang Tse
b66def2b4c
Emmanuel Dreyfus fixed not being able to find ber_free() in
...
libldap when available in liblber.
2007-03-12 05:09:25 +00:00
Daniel Stenberg
20b9ab49a7
can just as well NULLify the pointer in a single spot
2007-03-11 22:48:58 +00:00
Daniel Stenberg
c8cd13337e
reverted the pselect patch => http://curl.haxx.se/mail/lib-2007-03/0100.html
2007-03-11 09:11:29 +00:00
Yang Tse
40e9e40cb4
fix compiler warning: unused variable
2007-03-11 00:26:01 +00:00
Daniel Stenberg
09c70dec08
Eygene Ryabinkin fixed a use-after-free issue with HTTP transfers with the
...
multi interface
2007-03-10 22:51:20 +00:00
Daniel Stenberg
dbaf4f9361
- Bryan Henderson introduces two things:
...
1) the progress callback gets called more frequently (at times)
2) libcurl *might* call the callback when it receives a signal
2007-03-10 12:11:21 +00:00
Daniel Stenberg
1e55ed5c7d
- Robert Iakobashvili fixed CURLOPT_INTERFACE for IPv6.
2007-03-09 22:48:07 +00:00
Daniel Stenberg
6dd4fe0740
- Robert A. Monat improved the maketgz and VC6/8 generating to set the correct
...
machine type too.
2007-03-09 22:26:59 +00:00
Dan Fandrich
85daec253c
Honour --ftp-ssl-control on ftps:// URLs to allow encrypted control and
...
unencrypted data connections.
2007-03-07 22:42:05 +00:00
Yang Tse
82d310d0d9
Do not remove CURLM_STATE_WAITPROXYCONNECT from the CURLMstate enum
...
in builds with HTTP support disabled to keep consistent enum values
for CURLMstate in all kind of builds.
2007-03-01 12:02:17 +00:00
Yang Tse
4fdb42377b
proper symbol definition check for Novell NetWare
2007-02-28 15:10:20 +00:00
Yang Tse
be8a5d0aef
proper symbol definition check for all AmigaOS flavours
2007-02-28 14:45:48 +00:00
Yang Tse
99dcd33f04
protect from themselves those who need it
2007-02-28 05:15:56 +00:00
Daniel Stenberg
060f7ca2d2
- Hang Kin Lau found and fixed: When I use libcurl to connect to an https
...
server through a proxy and have the remote https server port set using the
CURLOPT_PORT option, protocol gets reset to http from https after the first
request.
User defined URL was modified internally by libcurl and subsequent reuse of
the easy handle may lead to connection using a different protocol (if not
originally http).
I found that libcurl hardcoded the protocol to "http" when it tries to
regenerate the URL if CURLOPT_PORT is set. I tried to fix the problem as
follows and it's working fine so far
2007-02-27 22:12:15 +00:00
Gisle Vanem
d165da07fe
Added TOPDIR variable. Put dependencies in external file.
2007-02-27 15:24:32 +00:00
Yang Tse
acc4cf87cd
no proxy support if libcurl is built with HTTP disabled
2007-02-27 02:24:13 +00:00
Daniel Stenberg
7444342675
Jose Kahan pointed out a Digest server that provided the algorith last in the
...
header line without quotes and with a CRLF immediately following...
2007-02-26 22:03:01 +00:00
Gisle Vanem
c514a2a89a
Removed inclusion of <sys/types.h> and <sys/stat.h> in .c-files
...
since they're already included through "setup.h".
2007-02-26 04:24:26 +00:00
Gisle Vanem
e2f0580dfe
Removed unneeded 'HAVE_x' defines.
2007-02-26 03:41:25 +00:00
Gisle Vanem
d165bed2d6
Fix typo.
2007-02-26 03:38:26 +00:00
Daniel Stenberg
b819c72700
- Adam D. Moss made the HTTP CONNECT procedure less blocking when used from
...
the multi interface. Note that it still does a part of the connection in a
blocking manner.
2007-02-25 11:38:13 +00:00
Yang Tse
4937281ddc
compiler warning fix
2007-02-22 07:39:45 +00:00
Yang Tse
8e27ed2fdd
Fix compiler warning "statement is unreachable"
2007-02-22 06:22:19 +00:00
Yang Tse
9bf9617ad6
Fix compiler warnings
...
"case label value exceeds maximum value for type" and
"comparison is always false due to limited range of data type"
Both triggered when using a bool variable as the switch variable
in a switch statement and using enums for the case targets.
2007-02-22 06:19:39 +00:00
Yang Tse
69565afab0
Check for stdbool.h at configuration stage, and include it if available.
...
Check for lowercase 'bool' type at configuration stage. If not available
provide a suitable replacement with a type definition of 'unsigned char'
in setup_once.h
Move definitions of TRUE and FALSE to setup_once.h
2007-02-22 02:51:54 +00:00
Daniel Stenberg
39aac63521
silence two cases of "comparison between signed and unsigned"
2007-02-21 22:02:13 +00:00
Daniel Stenberg
f19d333ef6
- Ravi Pratap provided work on libcurl making pipelining more robust and
...
fixing some bugs:
o Don't mix GET and POST requests in a pipeline
o Fix the order in which requests are dispatched from the pipeline
o Fixed several curl bugs with pipelining when the server is returning
chunked encoding:
* Added states to chunked parsing for final CRLF
* Rewind buffer after parsing chunk with data remaining
* Moved chunked header initializing to a spot just before receiving
headers
2007-02-21 21:59:40 +00:00
Yang Tse
3a634a273a
curlassert macro replaced with DEBUGASSERT macro defined in setup_once.h
2007-02-21 19:03:20 +00:00
Dan Fandrich
06d1b029f6
Include some possible dependencies of arpa/inet.h
2007-02-21 18:05:38 +00:00
Yang Tse
48029d7e74
fix compiler warning "enumerated type mixed with another type"
2007-02-21 05:48:07 +00:00
Linus Nielsen Feltzing
2f5e99ca02
New FTP CCC functionality - adds passive and active mode to accomodate for different server behaviour
2007-02-20 22:02:11 +00:00
Dan Fandrich
6014c21bc9
Include network byte order conversion macros on Minix.
2007-02-20 17:31:20 +00:00
Yang Tse
8c0b1dc3c5
compiler warning fix
2007-02-20 14:26:15 +00:00
Yang Tse
be3c5f0b94
compiler warning fix
2007-02-20 14:01:04 +00:00
Yang Tse
29bb6f65f1
Move header file inclusion logic and definition of timeval
...
struct for platforms that don't have it to setup_once.h
2007-02-20 12:12:27 +00:00
Daniel Stenberg
1045b8d382
- Shmulik Regev found a memory leak in re-used HTTPS connections, at least
...
when the multi interface was used.
2007-02-19 12:20:32 +00:00
Daniel Stenberg
d2bdad5945
and fix warnings due to lack of protos
2007-02-19 11:55:49 +00:00
Daniel Stenberg
17e8d60c01
- Robson Braga Araujo made passive FTP transfers work with SOCKS (both 4 and
...
5).
2007-02-19 11:53:54 +00:00
Daniel Stenberg
ec1b351317
fixed code to compile and removed one warning
2007-02-19 11:47:04 +00:00
Daniel Stenberg
cbf58d88d0
- Jeff Pohlmeyer identified two problems: first a rather obscure problem with
...
the multi interface and connection re-use that could make a
curl_multi_remove_handle() ruin a pointer in another handle.
The second problem was less of an actual problem but more of minor quirk:
the re-using of connections wasn't properly checking if the connection was
marked for closure.
2007-02-18 23:02:42 +00:00
Yang Tse
300cbc2e21
Michal Marek comment fix
2007-02-18 00:54:26 +00:00
Yang Tse
ec9e399668
fix ENAMETOOLONG and ENOTEMPTY may already be defined in errno.h
2007-02-18 00:34:37 +00:00
Yang Tse
d9bf55570b
Move portable error number symbolic name definitions to setup_once.h
2007-02-17 13:51:24 +00:00
Dan Fandrich
a0a47f2767
Better separate the library dependencies into those required by libcurl
...
and those required by other components to avoid forcing unneeded
dependencies into the target objects.
2007-02-17 01:29:01 +00:00
Dan Fandrich
69f2f5cb6f
Replicate the configure tests that determined that timeval was available.
2007-02-17 01:23:37 +00:00
Yang Tse
a1d5983991
use macros ERRNO, SET_ERRNO(), SOCKERRNO and SET_SOCKERRNO() for errno handling
2007-02-16 18:19:35 +00:00
Daniel Stenberg
aa4435c23b
- Duncan Mac-Vicar Prett and Michal Marek reported problems with resetting
...
CURLOPT_RANGE back to no range on an easy handle when using FTP.
2007-02-16 15:37:05 +00:00
Daniel Stenberg
dca8f962e0
maxdownload is actually -1 for unlimited
2007-02-16 15:27:49 +00:00
Yang Tse
6663608d15
avoid redefinition of SET_ERRNO()
2007-02-15 18:44:32 +00:00
Yang Tse
d21e4eb8ae
introduce uppercase macros SOCKERRNO, SET_SOCKERRNO(), ERRNO and SET_ERRNO()
...
making them available to any source code file which includes "setup.h".
Macro SOCKERRNO / SET_SOCKERRNO() returns / sets the *socket-related* errno
(or equivalent) on this platform to hide platform details to code using it.
Macro ERRNO / SET_ERRNO() returns / sets the NOT *socket-related* errno
(or equivalent) on this platform to hide platform details to code using it.
2007-02-15 16:23:24 +00:00
Yang Tse
d86e6d3ed2
Do not define HAVE_GMTIME_R for native Windows builds
2007-02-15 01:58:37 +00:00
Yang Tse
f99ca90540
Daniel Mirchandani fix to make libcurl build nicely on Winsock
...
build targets when --disable-verbose is specified.
2007-02-15 01:38:07 +00:00
Gunter Knauf
e24cb6cb90
enabled IPV6 builds.
2007-02-15 01:36:35 +00:00
Yang Tse
fbcf86b83e
avoid using funtion isblank() and just use our ISBLANK
...
macro to provide this functionality on all platforms
2007-02-14 13:31:37 +00:00
Yang Tse
5c3f36b4b4
compiler warning fix
2007-02-14 04:45:30 +00:00
Daniel Stenberg
4efa0d9f68
ftp@example.com is now the new anonymous FTP password. I opted for 'ftp' on
...
the left side of @ to make it short(er).
2007-02-13 22:50:16 +00:00
Daniel Stenberg
e021fe9444
- Robert A. Monat made libcurl build fine with VC2005 - it doesn't have
...
gmtime_r() like the older VC versions. He also made use of some machine-
specific defines to differentiate the "OS" define.
2007-02-13 21:21:44 +00:00
Yang Tse
be71ccbce3
check for isblank() at configuration stage. If not available
...
provide a suitable replacement for use in our ISBLANK macro
2007-02-13 19:01:03 +00:00
Yang Tse
0db485a448
use our own ISUPPER and ISLOWER macros
2007-02-13 18:02:20 +00:00
Yang Tse
6d05a33ed9
use our own ISBLANK macro
2007-02-13 17:47:27 +00:00
Yang Tse
569c169559
use our own ISSPACE macro
2007-02-13 17:28:40 +00:00
Yang Tse
5649b738be
compiler warning fix
2007-02-13 02:30:31 +00:00
Daniel Stenberg
7f70dbcad5
Rob Crittenden added support for NSS (Network Security Service) for the
...
SSL/TLS layer. http://www.mozilla.org/projects/security/pki/nss/
2007-02-12 22:32:37 +00:00
Daniel Stenberg
28b932fb4e
- Shmulik Regev fixed so that the final CRLF of HTTP response headers are sent
...
to the debug callback.
- Shmulik Regev added CURLOPT_HTTP_CONTENT_DECODING and
CURLOPT_HTTP_TRANSFER_DECODING that if set to zero will disable libcurl's
internal decoding of content or transfer encoded content. This may be
preferable in cases where you use libcurl for proxy purposes or similar. The
command line tool got a --raw option to disable both at once.
2007-02-12 21:13:47 +00:00
Daniel Stenberg
c7d0966201
- Jeff Pohlmeyer fixed a flaw in curl_multi_add_handle() when adding a handle
...
that has an easy handle present in the "closure" list pending closure.
2007-02-12 12:15:41 +00:00
Daniel Stenberg
04e6568a7e
SCP upload done non-blocking
2007-02-07 22:00:33 +00:00
Yang Tse
77fcad041f
fix for millisecond resolution timeouts
2007-02-06 18:08:11 +00:00
Yang Tse
e213555c98
compiler warning fix
2007-02-06 18:06:37 +00:00
Daniel Stenberg
028a9d6785
read SFTP with the non-blocking API
2007-02-06 15:41:19 +00:00
Yang Tse
d0aca8017f
compiler warning fix
2007-02-06 03:31:27 +00:00
Daniel Stenberg
91386937ff
- Michael Wallner provided a patch that adds support for CURLOPT_TIMEOUT_MS
...
and CURLOPT_CONNECTTIMEOUT_MS that, as their names should hint, do the
timeouts with millisecond resolution instead. The only restriction to that
is the alarm() (sometimes) used to abort name resolves as that uses full
seconds. I fixed the FTP response timeout part of the patch.
Internally we now count and keep the timeouts in milliseconds but it also
means we multiply set timeouts with 1000. The effect of this is that no
timeout can be set to more than 2^31 milliseconds (on 32 bit systems), which
equals 24.86 days. We probably couldn't before either since the code did
*1000 on the timeout values on several places already.
2007-02-05 22:51:32 +00:00
Yang Tse
bc2183b440
compiler warning fix
2007-02-05 04:10:32 +00:00
Gisle Vanem
6a175b42db
Suppress warning "'nread' might be used uninitialized in this function".
2007-02-04 12:18:22 +00:00
Yang Tse
82f52e5a6f
compiler warning fix
2007-02-03 13:05:28 +00:00
Daniel Stenberg
138b4f27b4
- Manfred Schwarb reported that socks5 support was broken and help us pinpoint
...
the problem. The code now tries harder to use httproxy and proxy where
apppropriate, as not all proxies are HTTP...
2007-02-03 09:33:54 +00:00
Yang Tse
c26ec47e90
compiler warning fix
2007-02-02 17:16:06 +00:00
Yang Tse
ef6f24a7ce
move DEBUGF macro definition to setup_once.h
2007-02-02 15:31:32 +00:00
Daniel Stenberg
abe90019d3
prefer using the (upcoming) non-blocking libssh2 API
2007-02-02 15:26:57 +00:00
Yang Tse
d2dd3d7e16
compiler warning fix
2007-02-01 15:36:56 +00:00
Gisle Vanem
1c63ceb317
Suppress the "'convbuf' might be used uninitialized in this function" warning.
2007-02-01 12:23:00 +00:00
Yang Tse
c25283185a
fogot to change Curl_mk_connc in header file
2007-02-01 11:27:42 +00:00
Yang Tse
54db98c220
compiler warning fix
2007-02-01 01:42:13 +00:00
Yang Tse
49c4d9c9cd
add debug messages for initialization failures
2007-01-31 19:47:49 +00:00
Gisle Vanem
e994c6af75
Use DOS line-endings.
2007-01-29 19:08:04 +00:00
Daniel Stenberg
abdbd3100f
- Michael Wallner reported that when doing a CONNECT with a custom User-Agent
...
header, you got _two_ User-Agent headers in the CONNECT request...! Added
test case 287 to verify the fix.
2007-01-29 09:26:36 +00:00
Gunter Knauf
ddace02efe
fixed segfault when compiled with MingW32 and cmd or command shell.
2007-01-29 00:51:02 +00:00
Daniel Stenberg
1f4c8c4f09
Andreas Rieke added extra infof() for when a connection is not re-used due to
...
SSL conditions not being the same
2007-01-28 22:45:22 +00:00
Daniel Stenberg
8162b32bad
silence compiler warnings
2007-01-28 22:36:23 +00:00
Gunter Knauf
daf527b276
enabled build with sspi.
2007-01-28 21:54:10 +00:00
Gunter Knauf
ee51c07be6
enabled build with hardcoded ca-bundle path;
...
added distclean target.
2007-01-28 15:31:06 +00:00
Gunter Knauf
856ba4c6c6
force to create ca-bunde.h even if it exists already.
2007-01-28 15:07:53 +00:00
Gunter Knauf
b3e23373bd
use var for awk.
2007-01-28 14:43:25 +00:00
Daniel Stenberg
e5adab39b1
curl_easy_reset() now resets the CA bundle path correctly
2007-01-28 12:58:13 +00:00
Gunter Knauf
d31153584e
another small fix to directory listing output; disabled CURL_LIBSSH2_DEBUG.
2007-01-28 12:35:39 +00:00
Gunter Knauf
a79e5d7925
fix sftp directory listing so that it works without -v and is redirectable with -o/-O.
2007-01-27 12:14:02 +00:00
Gunter Knauf
82491d5c06
tell us what we put out here...
2007-01-27 11:50:42 +00:00
Yang Tse
b6f889085d
update copyright year notice
2007-01-27 03:43:05 +00:00
Yang Tse
cdbbb7d900
Compiler warning fix
2007-01-27 03:14:25 +00:00
Yang Tse
f1918aa343
sync comment with reality
2007-01-27 01:56:20 +00:00
Dan Fandrich
e6aed92742
Fixed compiler warning.
2007-01-26 17:50:06 +00:00
Gunter Knauf
5f5a28d20e
added project header to lib resource file; fixed header copyright.
2007-01-26 08:53:03 +00:00
Daniel Stenberg
2b280bcc69
fix compiler warnings for SSL-disabled builds
2007-01-25 21:00:03 +00:00
Gunter Knauf
83a43bea8a
removed unused define.
2007-01-25 15:00:01 +00:00
Gunter Knauf
2b7bcf2505
fixed copyright for new year.
2007-01-25 13:17:20 +00:00
Gunter Knauf
4b27fae069
enabled build with libssh2.
2007-01-25 13:14:42 +00:00
Daniel Stenberg
10a13eba72
fix non-SSL builds again
2007-01-25 11:09:56 +00:00
Dan Fandrich
44ac2776ae
Fixed a dangling pointer problem that prevented the http_proxy environment
...
variable from being properly used in many cases (and caused test case 63
to fail).
2007-01-25 01:35:43 +00:00
Gunter Knauf
36e3e6ed16
removed not used define.
2007-01-25 00:26:29 +00:00
Dan Fandrich
5f9cbc4209
Only shut down SSL if the CCC command succeeded.
2007-01-24 19:09:12 +00:00
Daniel Stenberg
3239f059b8
moved the SSL pending function to the proper place and name
2007-01-24 17:19:08 +00:00
Daniel Stenberg
45bac25d90
bail out on strdup() errors
2007-01-24 12:34:23 +00:00
Daniel Stenberg
354c8dcd82
- David McCreedy did NTLM changes mainly for non-ASCII platforms:
...
#1
There's a compilation error in http_ntlm.c if USE_NTLM2SESSION is NOT
defined. I noticed this while testing various configurations. Line 867 of
the current http_ntlm.c is a closing bracket for an if/else pair that only
gets compiled in if USE_NTLM2SESSION is defined. But this closing bracket
wasn't in an #ifdef so the code fails to compile unless USE_NTLM2SESSION was
defined. Lines 198 and 140 of my patch wraps that closing bracket in an
#ifdef USE_NTLM2SESSION.
#2
I noticed several picky compiler warnings when DEBUG_ME is defined. I've
fixed them with casting. By the way, DEBUG_ME was a huge help in
understanding this code.
#3
Hopefully the last non-ASCII conversion patch for libcurl in a while. I
changed the "NTLMSSP" literal to hex since this signature must always be in
ASCII.
Conversion code was strategically added where necessary. And the
Curl_base64_encode calls were changed so the binary "blobs" http_ntlm.c
creates are NOT translated on non-ASCII platforms.
2007-01-23 22:57:42 +00:00
Daniel Stenberg
9e1aef7183
very minor indent change
2007-01-23 22:13:05 +00:00
Gunter Knauf
9ab7cda010
enabled build with libssh2; fixed copyright for new year..
2007-01-23 00:26:45 +00:00
Gisle Vanem
7b704e173c
Supress "comparison between signed and unsigned" warning.
2007-01-17 15:15:21 +00:00
Daniel Stenberg
8cade952bf
David McCreedy fixed a flaw from his previous non-ascii HTTP patch
2007-01-16 22:26:50 +00:00
Daniel Stenberg
385e612fa5
- Armel Asselin improved libcurl to behave a lot better when an easy handle
...
doing an FTP transfer is removed from a multi handle before completion. The
fix also fixed the "alive counter" to be correct on "premature removal" for
all protocols.
2007-01-16 22:22:10 +00:00
Daniel Stenberg
1886388791
restore previous addition to the amount of data that is returned
2007-01-16 21:28:45 +00:00
Dan Fandrich
bbdc483671
Fixed a small memory leak in tftp uploads discovered by curl's memory leak
...
detector. Also changed tftp downloads to URL-unescape the downloaded
file name.
2007-01-16 18:33:25 +00:00
Daniel Stenberg
0fb5a65a58
- David McCreedy provided libcurl changes for doing HTTP communication on
...
non-ASCII platforms. It does add some complexity, most notably with more
#ifdefs, but I want to see this supported added and I can't see how we can
add it without the extra stuff added.
2007-01-14 14:57:51 +00:00
Daniel Stenberg
869d65337e
fixed bad variable use when getting the size which we should read when
...
attempting not to read data that might belong to the next response (if
pipelining)
2007-01-13 23:33:21 +00:00
Daniel Stenberg
277df1c6b1
make Curl_cookie_clearall() survive getting called with a NULL pointer
2007-01-13 23:32:14 +00:00
Dan Fandrich
9e61c904ac
Display crypto engine name correctly in debug message.
2007-01-10 21:21:53 +00:00
Linus Nielsen Feltzing
d465199411
Correct error code for CCC/SSL shutdown failure
2007-01-08 11:24:11 +00:00
Linus Nielsen Feltzing
55123424c8
Removed unused variable in Curl_ossl_shutdown()
2007-01-08 10:03:19 +00:00
Linus Nielsen Feltzing
7515a75206
Fix compilation errors when building without SSL
2007-01-06 10:49:11 +00:00
Daniel Stenberg
4750e6f3c5
- Linus Nielsen Feltzing introduced the --ftp-ssl-ccc command line option to
...
curl that uses the new CURLOPT_FTP_SSL_CCC option in libcurl. If enabled, it
will make libcurl shutdown SSL/TLS after the authentication is done on a
FTP-SSL operation.
2007-01-05 23:11:14 +00:00
Gisle Vanem
b7aaa4d907
Include <dos.h> for delay() on MSDOS.
2007-01-05 15:56:28 +00:00
Daniel Stenberg
359d500908
- David McCreedy made changes to allow base64 encoding/decoding to work on
...
non-ASCII platforms.
2007-01-03 23:04:38 +00:00
Daniel Stenberg
d8ff0336a5
- Matt Witherspoon fixed the flaw which made libcurl 7.16.0 always store
...
downloaded data in two buffers, just to be able to deal with a special HTTP
pipelining case. That is now only activated for pipelined transfers. In
Matt's case, it showed as a considerable performance difference,
2007-01-03 22:18:38 +00:00
Daniel Stenberg
0682d25da5
- Victor Snezhko helped us fix bug report #1603712
...
(http://curl.haxx.se/bug/view.cgi?id=1603712 ) (known bug #36 ) --limit-rate
(CURLOPT_MAX_SEND_SPEED_LARGE and CURLOPT_MAX_RECV_SPEED_LARGE) are broken
on Windows (since 7.16.0, but that's when they were introduced as previous
to that the limiting logic was made in the application only and not in the
library). It was actually also broken on select()-based systems (as apposed
to poll()) but we haven't had any such reports. We now use select(), Sleep()
or delay() properly to sleep a while without waiting for anything input or
output when the rate limiting is activated with the easy interface.
2007-01-02 22:34:56 +00:00
Daniel Stenberg
bd600fbebe
curl_easy_duphandle() sets the magic number in the new handle
2006-12-29 11:32:14 +00:00
Daniel Stenberg
bedc61ac45
- Robert Foreman provided a prime example snippet showing how libcurl would
...
get confused and not acknowledge the 'no_proxy' variable properly once it
had used the proxy and you re-used the same easy handle. I made sure the
proxy name is properly stored in the connect struct rather than the
sessionhandle/easy struct.
2006-12-22 15:04:59 +00:00
Daniel Stenberg
61a6992559
Curl_getinfo() now checks for a NULL SessionHandle pointer
2006-12-22 13:44:10 +00:00
Daniel Stenberg
ebee2e323d
- David McCreedy fixed a bad call to getsockname() that wrongly used a size_t
...
variable to point to when it should be a socklen_t.
2006-12-22 13:30:54 +00:00
Daniel Stenberg
b2f8de571f
When setting a proxy with environment variables and (for example) running
...
'curl [URL]' with a URL without a protocol prefix, curl would not send a
correct request as it failed to add the protocol prefix.
2006-12-22 07:30:21 +00:00
Daniel Stenberg
cb4a5f5a2b
minor indent fix
2006-12-21 15:47:19 +00:00
Daniel Stenberg
1beb7de7e0
removed unused variables
2006-12-21 10:18:15 +00:00
Daniel Stenberg
89ab5f4380
Robson Braga Araujo reported bug #1618359
...
(http://curl.haxx.se/bug/view.cgi?id=1618359 ) and subsequently provided a
patch for it: when downloading 2 zero byte files in a row, curl 7.16.0
enters an infinite loop, while curl 7.16.1-20061218 does one additional
unnecessary request.
Fix: During the "Major overhaul introducing http pipelining support and
shared connection cache within the multi handle." change, headerbytecount
was moved to live in the Curl_transfer_keeper structure. But that structure
is reset in the Transfer method, losing the information that we had about
the header size. This patch moves it back to the connectdata struct.
2006-12-21 10:15:38 +00:00
Daniel Stenberg
8d11767048
recv() doesn't take MSG_NOSIGNAL in its forth argument so let's not pass it.
...
Brendan Jurd pointed out.
2006-12-16 22:28:08 +00:00
Daniel Stenberg
fcccf9aa0d
Brendan Jurd provided a fix that now prevents libcurl from getting a SIGPIPE
...
during certain conditions when GnuTLS is used.
2006-12-16 21:33:51 +00:00
Daniel Stenberg
72bd027537
Brendan Jurd pointed out these typos
2006-12-16 21:05:33 +00:00
Gisle Vanem
33831759b5
Fix typo.
2006-12-15 16:49:40 +00:00
Daniel Stenberg
88c8d72a21
Alexey Simak found out that when doing FTP with the multi interface and
...
something went wrong like it got a bad response code back from the server,
libcurl would leak memory. Added test case 538 to verify the fix.
I also noted that the connection would get cached in that case, which
doesn't make sense since it cannot be re-use when the authentication has
failed. I fixed that issue too at the same time, and also that the path
would be "remembered" in vain for cases where the connection was about to
get closed.
2006-12-11 09:32:58 +00:00
Daniel Stenberg
cf99fed17a
PROT_CLOSEACTION doesn't have to be its own bit but can just as well just
...
include the protocol bits of such actions, which currently only means FTP
2006-12-11 09:31:08 +00:00
Daniel Stenberg
ca48b6bf35
fixed the printf formatting after I changed the type of 'excess'
2006-12-07 15:33:06 +00:00
Daniel Stenberg
840e796aa9
Sebastien Willemijns reported bug #1603712
...
(http://curl.haxx.se/bug/view.cgi?id=1603712 ) which is about connections
getting cut off prematurely when --limit-rate is used. While I found no such
problems in my tests nor in my reading of the code, I found that the
--limit-rate code was severly flawed (since it was moved into the lib, since
7.15.5) when used with the easy interface and it didn't work as documented so
I reworked it somewhat and now it works for my tests.
2006-12-06 09:37:40 +00:00
Daniel Stenberg
5fd096da8d
Stefan Krause pointed out a compiler warning with a picky MSCV compiler when
...
passing a curl_off_t argument to the Curl_read_rewind() function which takes
an size_t argument. Curl_read_rewind() also had debug code left in it and it
was put in a different source file with no good reason when only used from
one single spot.
2006-12-05 21:40:14 +00:00
Daniel Stenberg
eb29c5c285
removed the final traces of the closepolicy option
2006-12-05 21:39:24 +00:00
Daniel Stenberg
e4505aefd9
Jared Lundell filed bug report #1604956
...
(http://curl.haxx.se/bug/view.cgi?id=1604956 ) which identified setting
CURLOPT_MAXCONNECTS to zero caused libcurl to SIGSEGV. Starting now, libcurl
will always internally use no less than 1 entry in the connection cache.
2006-12-05 15:36:26 +00:00
Daniel Stenberg
d6b0612882
better preprocessor check for recent MSVC versions
2006-12-05 15:24:18 +00:00
Daniel Stenberg
4c65eb0af8
CURLOPT_FORBID_REUSE works again with a cleaned up order of doing things in
...
Curl_done()
2006-12-05 15:17:32 +00:00