Yang Tse [Mon, 31 Jul 2006 18:41:29 +0000 (18:41 +0000)]
Avoid the risk of a false positive detection of MSG_NOSIGNAL when cross compiling a Windows target.
Yang Tse [Mon, 31 Jul 2006 17:46:28 +0000 (17:46 +0000)]
Silence warning: empty body in an if-statement
Yang Tse [Mon, 31 Jul 2006 17:12:24 +0000 (17:12 +0000)]
Force compilation failure in case macros sread() or swrite() are not defined.
Yang Tse [Mon, 31 Jul 2006 16:58:10 +0000 (16:58 +0000)]
Provide definitions needed for macros sread() and swrite() in config file.
Daniel Stenberg [Sun, 30 Jul 2006 22:47:53 +0000 (22:47 +0000)]
adapt to the new protos
Daniel Stenberg [Sun, 30 Jul 2006 22:44:07 +0000 (22:44 +0000)]
curl_multi_socket() and curl_multi_socket_all() got modified prototypes: they
both now provide the number of running handles back to the calling function.
Yang Tse [Sat, 29 Jul 2006 16:17:36 +0000 (16:17 +0000)]
Winsock and Cygwin need address family specification before bind(), this should be harmless for others.
Yang Tse [Sat, 29 Jul 2006 09:15:03 +0000 (09:15 +0000)]
Fix compiler warnings.
Yang Tse [Sat, 29 Jul 2006 08:39:20 +0000 (08:39 +0000)]
include setup_once.h dependency and adjust to 80 char lines.
Daniel Stenberg [Fri, 28 Jul 2006 22:04:44 +0000 (22:04 +0000)]
new D binding
Yang Tse [Fri, 28 Jul 2006 18:01:23 +0000 (18:01 +0000)]
Replace send() and recv() with swrite() and sread() macros.
Yang Tse [Fri, 28 Jul 2006 14:19:02 +0000 (14:19 +0000)]
First step trying to avoid the multiple header inclusion and recursion nightmare.
Reintroduce checking for HAVE_MSG_NOSIGNAL in configure script, so that we don't depend on header inclusion order for a valid check.
Daniel Stenberg [Thu, 27 Jul 2006 22:44:56 +0000 (22:44 +0000)]
test case 277 - HTTP RFC1867-type formposting with custom Content-Type
Daniel Stenberg [Thu, 27 Jul 2006 22:35:09 +0000 (22:35 +0000)]
Yves Lejeune fixed so that replacing Content-Type: when doing multipart
formposts work exactly the way you want it (and the way you'd assume it
works)
Daniel Stenberg [Thu, 27 Jul 2006 22:28:53 +0000 (22:28 +0000)]
put back the correct logic, as the change dated July 11th 2006 added bad
behaviour and a socket leak
Daniel Stenberg [Wed, 26 Jul 2006 23:20:47 +0000 (23:20 +0000)]
David McCreedy added --ftp-ssl-reqd which makes curl *require* SSL for both
control and data connection, as the existing --ftp-ssl option only requests
it.
Daniel Stenberg [Wed, 26 Jul 2006 22:25:00 +0000 (22:25 +0000)]
curl_multi_assign() and CURLMOPT_SOCKETFUNCTION proto change
Daniel Stenberg [Wed, 26 Jul 2006 22:19:42 +0000 (22:19 +0000)]
[Hiper-related work] Added a function called curl_multi_assign() that will
set a private pointer added to the internal libcurl hash table for the
particular socket passed in to this function.
Yang Tse [Wed, 26 Jul 2006 10:54:08 +0000 (10:54 +0000)]
Provide multiple header inclusion prevention definition __ARES_PRIVATE_H
Yang Tse [Wed, 26 Jul 2006 10:47:11 +0000 (10:47 +0000)]
Change multiple header inclusion prevention definition to __ARES_BITNCMP_H
Yang Tse [Wed, 26 Jul 2006 10:43:15 +0000 (10:43 +0000)]
Change multiple header inclusion prevention definition to __ARES_INET_NET_PTON_H
Yang Tse [Wed, 26 Jul 2006 10:33:17 +0000 (10:33 +0000)]
Sync header with source code
Daniel Stenberg [Tue, 25 Jul 2006 22:45:21 +0000 (22:45 +0000)]
Dan Nelson added the CURLOPT_FTP_ALTERNATIVE_TO_USER libcurl option and curl
tool option named --ftp-alternative-to-user. It provides a mean to send a
particular command if the normal USER/PASS approach fails.
Daniel Stenberg [Tue, 25 Jul 2006 22:06:42 +0000 (22:06 +0000)]
Michael Jerris added magic that builds lib/curllib.vcproj automatically (for
newer MSVC versions)
Yang Tse [Tue, 25 Jul 2006 18:48:12 +0000 (18:48 +0000)]
Fix warning: no newline at end of file
Daniel Stenberg [Tue, 25 Jul 2006 18:38:51 +0000 (18:38 +0000)]
Georg Horn made the transfer timeout error message include more details
Yang Tse [Tue, 25 Jul 2006 13:49:49 +0000 (13:49 +0000)]
Simplify check for NEED_MALLOC_H, and make more explicit that NEED_MALLOC_H shall be defined if <malloc.h> header file must be included even when including <stdlib.h>.
Gisle Vanem [Tue, 25 Jul 2006 11:35:35 +0000 (11:35 +0000)]
Silence iconv() warnings.
Gisle Vanem [Tue, 25 Jul 2006 11:08:42 +0000 (11:08 +0000)]
Added CURL_VERSION_CONV feature string.
Gisle Vanem [Tue, 25 Jul 2006 10:49:12 +0000 (10:49 +0000)]
Added note for CURLRES_ARES and CURLRES_IPV6.
Gisle Vanem [Tue, 25 Jul 2006 10:31:31 +0000 (10:31 +0000)]
Moved functions common to IPv4 and C-ares to hostip.c;
Curl_freeaddrinfo() and Curl_ip2addr().
Gisle Vanem [Tue, 25 Jul 2006 10:23:15 +0000 (10:23 +0000)]
Remove comment about c-ares not supporting IPv6.
Gisle Vanem [Mon, 24 Jul 2006 15:58:33 +0000 (15:58 +0000)]
Use the proper Curl_freeaddrinfo() for CURLRES_ARES.
Gisle Vanem [Mon, 24 Jul 2006 15:56:40 +0000 (15:56 +0000)]
Fix typo.
Gisle Vanem [Mon, 24 Jul 2006 15:48:48 +0000 (15:48 +0000)]
Ares needs CURLRES_ADDRINFO_COPY. Curl_hostent_relocate() is gone.
Daniel Stenberg [Sun, 23 Jul 2006 12:01:06 +0000 (12:01 +0000)]
added splay.o
Gisle Vanem [Sun, 23 Jul 2006 10:10:52 +0000 (10:10 +0000)]
Added getopt() processing.
Gisle Vanem [Sat, 22 Jul 2006 17:31:00 +0000 (17:31 +0000)]
Added getopt() processing of [-t {a|aaaa}].
Gisle Vanem [Sat, 22 Jul 2006 15:38:35 +0000 (15:38 +0000)]
Added CVS id.
Gisle Vanem [Sat, 22 Jul 2006 15:37:10 +0000 (15:37 +0000)]
2nd try adding CVS id.
Gisle Vanem [Sat, 22 Jul 2006 15:21:13 +0000 (15:21 +0000)]
Added CVS id.
Gisle Vanem [Sat, 22 Jul 2006 15:12:34 +0000 (15:12 +0000)]
Use ares_free_string() to avoid detecting leaks.
Gisle Vanem [Sat, 22 Jul 2006 14:51:39 +0000 (14:51 +0000)]
If CURLDEBUG defined, call curl_memdebug() if $CARES_MEMDEBUG is set.
Gisle Vanem [Fri, 21 Jul 2006 06:50:39 +0000 (06:50 +0000)]
Constify some arguments in Curl_connecthost() and singleipconnect().
Gisle Vanem [Fri, 21 Jul 2006 06:21:46 +0000 (06:21 +0000)]
Constify arguments to Curl_he2ai() and Curl_addrinfo_copy().
Gisle Vanem [Fri, 21 Jul 2006 05:51:12 +0000 (05:51 +0000)]
Constify 'hostname' and 'service' to various resolver functions.
Gisle Vanem [Fri, 21 Jul 2006 04:22:44 +0000 (04:22 +0000)]
Changes for combination ENABLE_IPV6 and USE_ARES.
Gisle Vanem [Fri, 21 Jul 2006 04:19:44 +0000 (04:19 +0000)]
Use calloc() instead.
Daniel Stenberg [Thu, 20 Jul 2006 20:04:52 +0000 (20:04 +0000)]
David McCreedy fixed a build error when building libcurl with HTTP disabled,
problem added with the curl_formget() patch.
Gisle Vanem [Thu, 20 Jul 2006 16:37:05 +0000 (16:37 +0000)]
Avoid warning "comparison of unsigned expression < 0 is always false"
Gisle Vanem [Thu, 20 Jul 2006 15:54:01 +0000 (15:54 +0000)]
Avoid warning 'port' might be used uninitialized in this function.
Dan Fandrich [Wed, 19 Jul 2006 22:27:49 +0000 (22:27 +0000)]
Changes to support building for eCos 1.3.1. This has been tested with
file: URLs only.
Yang Tse [Wed, 19 Jul 2006 21:14:02 +0000 (21:14 +0000)]
Fix compiler warnings
Yang Tse [Wed, 19 Jul 2006 19:09:56 +0000 (19:09 +0000)]
Avoid variable declaration shadowing previously declared one
Yang Tse [Wed, 19 Jul 2006 18:46:56 +0000 (18:46 +0000)]
Avoid variable declaration shadowing previously declared one
Yang Tse [Wed, 19 Jul 2006 18:32:38 +0000 (18:32 +0000)]
remove variable declaration shadowing previously declared one
Yang Tse [Wed, 19 Jul 2006 18:19:30 +0000 (18:19 +0000)]
Remove variable declaration shadowing previously declared one
Yang Tse [Wed, 19 Jul 2006 15:28:30 +0000 (15:28 +0000)]
Abort if unable to write pid file, and close socket when aborting.
Yang Tse [Wed, 19 Jul 2006 15:26:28 +0000 (15:26 +0000)]
Abort if unable to write pid file.
Yang Tse [Mon, 17 Jul 2006 22:44:40 +0000 (22:44 +0000)]
-Use curl_socket_t instead of int.
-Log errno in message if setsockopt() fails.
-Close listener socket on major errors.
Yang Tse [Mon, 17 Jul 2006 19:22:28 +0000 (19:22 +0000)]
"*connected" must be set to FALSE if trynextip() fails.
Daniel Stenberg [Mon, 17 Jul 2006 18:35:58 +0000 (18:35 +0000)]
Jari Sundell did some excellent research and bug tracking, figured out that
we did wrong and patched it: When nodes were removed from the splay tree,
and we didn't properly remove it from the splay tree when an easy handle was
removed from a multi stack and thus we could wrongly leave a node in the
splay tree pointing to (bad) memory.
Yang Tse [Mon, 17 Jul 2006 16:47:07 +0000 (16:47 +0000)]
tests/libtest/lib506.c version 1.11 is now also logging CURLSHOPT_LOCKFUNC, CURLSHOPT_UNLOCKFUNC and CURLSHOPT_USERDATA, so we now also have to check them here.
Yang Tse [Mon, 17 Jul 2006 15:25:37 +0000 (15:25 +0000)]
Return NULL if argument is NULL.
Yang Tse [Mon, 17 Jul 2006 14:52:31 +0000 (14:52 +0000)]
Fix compiler warning "enumerated type mixed with another type"
Yang Tse [Mon, 17 Jul 2006 14:32:19 +0000 (14:32 +0000)]
Fix compiler warning "enumerated type mixed with another type"
Yang Tse [Mon, 17 Jul 2006 05:05:57 +0000 (05:05 +0000)]
Update error buffer size used for SSL_strerror()
Yang Tse [Mon, 17 Jul 2006 03:38:13 +0000 (03:38 +0000)]
Minor cleanup
Daniel Stenberg [Sat, 15 Jul 2006 18:57:51 +0000 (18:57 +0000)]
don't use 'new' in the proto
Daniel Stenberg [Fri, 14 Jul 2006 18:58:42 +0000 (18:58 +0000)]
David McCreedy fixed a flaw where the CRLF counter wasn't properly cleared
for FTP ASCII transfers.
Yang Tse [Fri, 14 Jul 2006 11:04:19 +0000 (11:04 +0000)]
Fix compiler warning
Yang Tse [Fri, 14 Jul 2006 10:30:44 +0000 (10:30 +0000)]
Change the ai_addrlen type of struct addrinfo from size_t to socklen_t, per RFC 3493.
Yang Tse [Fri, 14 Jul 2006 06:31:41 +0000 (06:31 +0000)]
Null terminate string in buffer before feeding it to strtol()
Yang Tse [Thu, 13 Jul 2006 18:57:34 +0000 (18:57 +0000)]
Oops, missing "u"
Yang Tse [Thu, 13 Jul 2006 18:50:51 +0000 (18:50 +0000)]
Change to meaningful var names and take care of a compiler warning on IRIX 6.5.22 MIPSPro C 7.3 64bit
Yang Tse [Thu, 13 Jul 2006 18:44:24 +0000 (18:44 +0000)]
Fix compiler warning.
Gisle Vanem [Wed, 12 Jul 2006 13:57:18 +0000 (13:57 +0000)]
Remove unneeded stuff.
Yang Tse [Wed, 12 Jul 2006 10:41:07 +0000 (10:41 +0000)]
Remove var not used.
Yang Tse [Wed, 12 Jul 2006 09:39:35 +0000 (09:39 +0000)]
Log a message if not all data is sent.
Yang Tse [Wed, 12 Jul 2006 09:03:48 +0000 (09:03 +0000)]
Fix compiler warning: comparison between signed and unsigned
Yang Tse [Wed, 12 Jul 2006 07:33:54 +0000 (07:33 +0000)]
Read the return value of the swrite() macro and 'print' a message in case of failure.
Yang Tse [Wed, 12 Jul 2006 06:52:40 +0000 (06:52 +0000)]
Place parenthesis surrounding macro parameters so that the use of sread and swrite is more intuitive.
Yang Tse [Wed, 12 Jul 2006 06:14:49 +0000 (06:14 +0000)]
sread now returns ssize_t
Yang Tse [Wed, 12 Jul 2006 06:09:53 +0000 (06:09 +0000)]
Pay attention when typecasting an operation
Yang Tse [Wed, 12 Jul 2006 05:54:06 +0000 (05:54 +0000)]
sread now returns ssize_t
Yang Tse [Wed, 12 Jul 2006 05:20:05 +0000 (05:20 +0000)]
DJGPP/WATT32 does not have functions named recv() send() getnameinfo().
Yang Tse [Wed, 12 Jul 2006 05:19:00 +0000 (05:19 +0000)]
Use platform's native types for recv() and send() arguments.
Dan Fandrich [Tue, 11 Jul 2006 21:35:35 +0000 (21:35 +0000)]
Enable --enable-hidden-symbols for SunPro C
Yang Tse [Tue, 11 Jul 2006 21:34:23 +0000 (21:34 +0000)]
include <malloc.h> only if HAVE_MALLOC_H and NEED_MALLOC_H are both defined.
Yang Tse [Tue, 11 Jul 2006 20:40:38 +0000 (20:40 +0000)]
Define NEED_MALLOC_H if including <stdlib.h> is not enough for proper compilation and <malloc.h> must also be included.
Dan Fandrich [Tue, 11 Jul 2006 17:02:06 +0000 (17:02 +0000)]
Moved strdup replacement from src/main.c into src/strdup.c so it's available
in libcurl as well, if necessary.
Gisle Vanem [Tue, 11 Jul 2006 13:12:57 +0000 (13:12 +0000)]
Added comment and CVS id.
Yang Tse [Tue, 11 Jul 2006 00:23:21 +0000 (00:23 +0000)]
Socket must be set to CURL_SOCKET_BAD after closing it.
Yang Tse [Mon, 10 Jul 2006 16:14:36 +0000 (16:14 +0000)]
DNS cache must use the multi DNS cache if the easy handle's one is not using anyone in curl_multi_add_handle.
Daniel Stenberg [Sat, 8 Jul 2006 21:30:56 +0000 (21:30 +0000)]
the tool is named curl with lowercase c
Daniel Stenberg [Sat, 8 Jul 2006 21:29:45 +0000 (21:29 +0000)]
just some more blurb
Daniel Stenberg [Sat, 8 Jul 2006 18:52:08 +0000 (18:52 +0000)]
Ates Goral pointed out that libcurl's cookie parser did case insensitive
string comparisons on the path which is incorrect and provided a patch that
fixes this. I edited test case 8 to include details that test for this.
Daniel Stenberg [Sat, 8 Jul 2006 18:49:41 +0000 (18:49 +0000)]
7.15.5 is planned for August 2006
Daniel Stenberg [Fri, 7 Jul 2006 23:08:03 +0000 (23:08 +0000)]
mention the shared DNS stuff
Daniel Stenberg [Fri, 7 Jul 2006 22:58:06 +0000 (22:58 +0000)]
Ingmar Runge provided a source snippet that caused a crash. The reason for
the crash was that libcurl internally was a bit confused about who owned the
DNS cache at all times so if you created an easy handle that uses a shared
DNS cache and added that to a multi handle it would crash. Now we keep more
careful internal track of exactly what kind of DNS cache each easy handle
uses: None, Private (allocated for and used only by this single handle),
Shared (points to a cache held by a shared object), Global (points to the
global cache) or Multi (points to the cache within the multi handle that is
automatically shared between all easy handles that are added with private
caches).