platform/upstream/curl.git
18 years agocurl_multi_socket() and curl_multi_socket_all() got modified prototypes: they
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.

18 years agoWinsock and Cygwin need address family specification before bind(), this should be...
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.

18 years agoFix compiler warnings.
Yang Tse [Sat, 29 Jul 2006 09:15:03 +0000 (09:15 +0000)]
Fix compiler warnings.

18 years agoinclude setup_once.h dependency and adjust to 80 char lines.
Yang Tse [Sat, 29 Jul 2006 08:39:20 +0000 (08:39 +0000)]
include setup_once.h dependency and adjust to 80 char lines.

18 years agonew D binding
Daniel Stenberg [Fri, 28 Jul 2006 22:04:44 +0000 (22:04 +0000)]
new D binding

18 years agoReplace send() and recv() with swrite() and sread() macros.
Yang Tse [Fri, 28 Jul 2006 18:01:23 +0000 (18:01 +0000)]
Replace send() and recv() with swrite() and sread() macros.

18 years agoFirst step trying to avoid the multiple header inclusion and recursion nightmare.
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.

18 years agotest case 277 - HTTP RFC1867-type formposting with custom Content-Type
Daniel Stenberg [Thu, 27 Jul 2006 22:44:56 +0000 (22:44 +0000)]
test case 277 - HTTP RFC1867-type formposting with custom Content-Type

18 years agoYves Lejeune fixed so that replacing Content-Type: when doing multipart
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)

18 years agoput back the correct logic, as the change dated July 11th 2006 added bad
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

18 years agoDavid McCreedy added --ftp-ssl-reqd which makes curl *require* SSL for both
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.

18 years agocurl_multi_assign() and CURLMOPT_SOCKETFUNCTION proto change
Daniel Stenberg [Wed, 26 Jul 2006 22:25:00 +0000 (22:25 +0000)]
curl_multi_assign() and CURLMOPT_SOCKETFUNCTION proto change

18 years ago[Hiper-related work] Added a function called curl_multi_assign() that will
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.

18 years agoProvide multiple header inclusion prevention definition __ARES_PRIVATE_H
Yang Tse [Wed, 26 Jul 2006 10:54:08 +0000 (10:54 +0000)]
Provide multiple header inclusion prevention definition __ARES_PRIVATE_H

18 years agoChange multiple header inclusion prevention definition to __ARES_BITNCMP_H
Yang Tse [Wed, 26 Jul 2006 10:47:11 +0000 (10:47 +0000)]
Change multiple header inclusion prevention definition to __ARES_BITNCMP_H

18 years agoChange multiple header inclusion prevention definition to __ARES_INET_NET_PTON_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

18 years agoSync header with source code
Yang Tse [Wed, 26 Jul 2006 10:33:17 +0000 (10:33 +0000)]
Sync header with source code

18 years agoDan Nelson added the CURLOPT_FTP_ALTERNATIVE_TO_USER libcurl option and curl
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.

18 years agoMichael Jerris added magic that builds lib/curllib.vcproj automatically (for
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)

18 years agoFix warning: no newline at end of file
Yang Tse [Tue, 25 Jul 2006 18:48:12 +0000 (18:48 +0000)]
Fix warning: no newline at end of file

18 years agoGeorg Horn made the transfer timeout error message include more details
Daniel Stenberg [Tue, 25 Jul 2006 18:38:51 +0000 (18:38 +0000)]
Georg Horn made the transfer timeout error message include more details

18 years agoSimplify check for NEED_MALLOC_H, and make more explicit that NEED_MALLOC_H shall...
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>.

18 years agoSilence iconv() warnings.
Gisle Vanem [Tue, 25 Jul 2006 11:35:35 +0000 (11:35 +0000)]
Silence iconv() warnings.

18 years agoAdded CURL_VERSION_CONV feature string.
Gisle Vanem [Tue, 25 Jul 2006 11:08:42 +0000 (11:08 +0000)]
Added CURL_VERSION_CONV feature string.

18 years agoAdded note for CURLRES_ARES and CURLRES_IPV6.
Gisle Vanem [Tue, 25 Jul 2006 10:49:12 +0000 (10:49 +0000)]
Added note for CURLRES_ARES and CURLRES_IPV6.

18 years agoMoved functions common to IPv4 and C-ares to hostip.c;
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().

18 years agoRemove comment about c-ares not supporting IPv6.
Gisle Vanem [Tue, 25 Jul 2006 10:23:15 +0000 (10:23 +0000)]
Remove comment about c-ares not supporting IPv6.

18 years agoUse the proper Curl_freeaddrinfo() for CURLRES_ARES.
Gisle Vanem [Mon, 24 Jul 2006 15:58:33 +0000 (15:58 +0000)]
Use the proper Curl_freeaddrinfo() for CURLRES_ARES.

18 years agoFix typo.
Gisle Vanem [Mon, 24 Jul 2006 15:56:40 +0000 (15:56 +0000)]
Fix typo.

18 years agoAres needs CURLRES_ADDRINFO_COPY. Curl_hostent_relocate() is gone.
Gisle Vanem [Mon, 24 Jul 2006 15:48:48 +0000 (15:48 +0000)]
Ares needs CURLRES_ADDRINFO_COPY. Curl_hostent_relocate() is gone.

18 years agoadded splay.o
Daniel Stenberg [Sun, 23 Jul 2006 12:01:06 +0000 (12:01 +0000)]
added splay.o

18 years agoAdded getopt() processing.
Gisle Vanem [Sun, 23 Jul 2006 10:10:52 +0000 (10:10 +0000)]
Added getopt() processing.

18 years agoAdded getopt() processing of [-t {a|aaaa}].
Gisle Vanem [Sat, 22 Jul 2006 17:31:00 +0000 (17:31 +0000)]
Added getopt() processing of [-t {a|aaaa}].

18 years agoAdded CVS id.
Gisle Vanem [Sat, 22 Jul 2006 15:38:35 +0000 (15:38 +0000)]
Added CVS id.

18 years ago2nd try adding CVS id.
Gisle Vanem [Sat, 22 Jul 2006 15:37:10 +0000 (15:37 +0000)]
2nd try adding CVS id.

18 years agoAdded CVS id.
Gisle Vanem [Sat, 22 Jul 2006 15:21:13 +0000 (15:21 +0000)]
Added CVS id.

18 years agoUse ares_free_string() to avoid detecting leaks.
Gisle Vanem [Sat, 22 Jul 2006 15:12:34 +0000 (15:12 +0000)]
Use ares_free_string() to avoid detecting leaks.

18 years agoIf CURLDEBUG defined, call curl_memdebug() if $CARES_MEMDEBUG is set.
Gisle Vanem [Sat, 22 Jul 2006 14:51:39 +0000 (14:51 +0000)]
If CURLDEBUG defined, call curl_memdebug() if $CARES_MEMDEBUG is set.

18 years agoConstify some arguments in Curl_connecthost() and singleipconnect().
Gisle Vanem [Fri, 21 Jul 2006 06:50:39 +0000 (06:50 +0000)]
Constify some arguments in Curl_connecthost() and singleipconnect().

18 years agoConstify arguments to Curl_he2ai() and Curl_addrinfo_copy().
Gisle Vanem [Fri, 21 Jul 2006 06:21:46 +0000 (06:21 +0000)]
Constify arguments to Curl_he2ai() and Curl_addrinfo_copy().

18 years agoConstify 'hostname' and 'service' to various resolver functions.
Gisle Vanem [Fri, 21 Jul 2006 05:51:12 +0000 (05:51 +0000)]
Constify 'hostname' and 'service' to various resolver functions.

18 years agoChanges for combination ENABLE_IPV6 and USE_ARES.
Gisle Vanem [Fri, 21 Jul 2006 04:22:44 +0000 (04:22 +0000)]
Changes for combination ENABLE_IPV6 and USE_ARES.

18 years agoUse calloc() instead.
Gisle Vanem [Fri, 21 Jul 2006 04:19:44 +0000 (04:19 +0000)]
Use calloc() instead.

18 years agoDavid McCreedy fixed a build error when building libcurl with HTTP disabled,
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.

18 years agoAvoid warning "comparison of unsigned expression < 0 is always false"
Gisle Vanem [Thu, 20 Jul 2006 16:37:05 +0000 (16:37 +0000)]
Avoid warning "comparison of unsigned expression < 0 is always false"

18 years agoAvoid warning 'port' might be used uninitialized in this function.
Gisle Vanem [Thu, 20 Jul 2006 15:54:01 +0000 (15:54 +0000)]
Avoid warning 'port' might be used uninitialized in this function.

18 years agoChanges to support building for eCos 1.3.1. This has been tested with
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.

18 years agoFix compiler warnings
Yang Tse [Wed, 19 Jul 2006 21:14:02 +0000 (21:14 +0000)]
Fix compiler warnings

18 years agoAvoid variable declaration shadowing previously declared one
Yang Tse [Wed, 19 Jul 2006 19:09:56 +0000 (19:09 +0000)]
Avoid variable declaration shadowing previously declared one

18 years agoAvoid 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

18 years agoremove 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

18 years agoRemove 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

18 years agoAbort if unable to write pid file, and close socket when aborting.
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.

18 years agoAbort if unable to write pid file.
Yang Tse [Wed, 19 Jul 2006 15:26:28 +0000 (15:26 +0000)]
Abort if unable to write pid file.

18 years ago-Use curl_socket_t instead of int.
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.

18 years ago"*connected" must be set to FALSE if trynextip() fails.
Yang Tse [Mon, 17 Jul 2006 19:22:28 +0000 (19:22 +0000)]
"*connected" must be set to FALSE if trynextip() fails.

18 years agoJari Sundell did some excellent research and bug tracking, figured out that
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.

18 years agotests/libtest/lib506.c version 1.11 is now also logging CURLSHOPT_LOCKFUNC, CURLSHOPT...
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.

18 years agoReturn NULL if argument is NULL.
Yang Tse [Mon, 17 Jul 2006 15:25:37 +0000 (15:25 +0000)]
Return NULL if argument is NULL.

18 years agoFix compiler warning "enumerated type mixed with another type"
Yang Tse [Mon, 17 Jul 2006 14:52:31 +0000 (14:52 +0000)]
Fix compiler warning "enumerated type mixed with another type"

18 years agoFix 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"

18 years agoUpdate error buffer size used for SSL_strerror()
Yang Tse [Mon, 17 Jul 2006 05:05:57 +0000 (05:05 +0000)]
Update error buffer size used for SSL_strerror()

18 years agoMinor cleanup
Yang Tse [Mon, 17 Jul 2006 03:38:13 +0000 (03:38 +0000)]
Minor cleanup

18 years agodon't use 'new' in the proto
Daniel Stenberg [Sat, 15 Jul 2006 18:57:51 +0000 (18:57 +0000)]
don't use 'new' in the proto

18 years agoDavid McCreedy fixed a flaw where the CRLF counter wasn't properly cleared
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.

18 years agoFix compiler warning
Yang Tse [Fri, 14 Jul 2006 11:04:19 +0000 (11:04 +0000)]
Fix compiler warning

18 years agoChange the ai_addrlen type of struct addrinfo from size_t to socklen_t, per RFC 3493.
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.

18 years agoNull terminate string in buffer before feeding it to strtol()
Yang Tse [Fri, 14 Jul 2006 06:31:41 +0000 (06:31 +0000)]
Null terminate string in buffer before feeding it to strtol()

18 years agoOops, missing "u"
Yang Tse [Thu, 13 Jul 2006 18:57:34 +0000 (18:57 +0000)]
Oops, missing "u"

18 years agoChange to meaningful var names and take care of a compiler warning on IRIX 6.5.22...
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

18 years agoFix compiler warning.
Yang Tse [Thu, 13 Jul 2006 18:44:24 +0000 (18:44 +0000)]
Fix compiler warning.

18 years agoRemove unneeded stuff.
Gisle Vanem [Wed, 12 Jul 2006 13:57:18 +0000 (13:57 +0000)]
Remove unneeded stuff.

18 years agoRemove var not used.
Yang Tse [Wed, 12 Jul 2006 10:41:07 +0000 (10:41 +0000)]
Remove var not used.

18 years agoLog a message if not all data is sent.
Yang Tse [Wed, 12 Jul 2006 09:39:35 +0000 (09:39 +0000)]
Log a message if not all data is sent.

18 years agoFix compiler warning: comparison between signed and unsigned
Yang Tse [Wed, 12 Jul 2006 09:03:48 +0000 (09:03 +0000)]
Fix compiler warning: comparison between signed and unsigned

18 years agoRead the return value of the swrite() macro and 'print' a message in case of failure.
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.

18 years agoPlace parenthesis surrounding macro parameters so that the use of sread and swrite...
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.

18 years agosread now returns ssize_t
Yang Tse [Wed, 12 Jul 2006 06:14:49 +0000 (06:14 +0000)]
sread now returns ssize_t

18 years agoPay attention when typecasting an operation
Yang Tse [Wed, 12 Jul 2006 06:09:53 +0000 (06:09 +0000)]
Pay attention when typecasting an operation

18 years agosread now returns ssize_t
Yang Tse [Wed, 12 Jul 2006 05:54:06 +0000 (05:54 +0000)]
sread now returns ssize_t

18 years agoDJGPP/WATT32 does not have functions named recv() send() getnameinfo().
Yang Tse [Wed, 12 Jul 2006 05:20:05 +0000 (05:20 +0000)]
DJGPP/WATT32 does not have functions named recv() send() getnameinfo().

18 years agoUse platform's native types for recv() and send() arguments.
Yang Tse [Wed, 12 Jul 2006 05:19:00 +0000 (05:19 +0000)]
Use platform's native types for recv() and send() arguments.

18 years agoEnable --enable-hidden-symbols for SunPro C
Dan Fandrich [Tue, 11 Jul 2006 21:35:35 +0000 (21:35 +0000)]
Enable --enable-hidden-symbols for SunPro C

18 years agoinclude <malloc.h> only if HAVE_MALLOC_H and NEED_MALLOC_H are both defined.
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.

18 years agoDefine NEED_MALLOC_H if including <stdlib.h> is not enough for proper compilation...
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.

18 years agoMoved strdup replacement from src/main.c into src/strdup.c so it's available
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.

18 years agoAdded comment and CVS id.
Gisle Vanem [Tue, 11 Jul 2006 13:12:57 +0000 (13:12 +0000)]
Added comment and CVS id.

18 years agoSocket must be set to CURL_SOCKET_BAD after closing it.
Yang Tse [Tue, 11 Jul 2006 00:23:21 +0000 (00:23 +0000)]
Socket must be set to CURL_SOCKET_BAD after closing it.

18 years agoDNS cache must use the multi DNS cache if the easy handle's one is not using anyone...
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.

18 years agothe tool is named curl with lowercase c
Daniel Stenberg [Sat, 8 Jul 2006 21:30:56 +0000 (21:30 +0000)]
the tool is named curl with lowercase c

18 years agojust some more blurb
Daniel Stenberg [Sat, 8 Jul 2006 21:29:45 +0000 (21:29 +0000)]
just some more blurb

18 years agoAtes Goral pointed out that libcurl's cookie parser did case insensitive
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.

18 years ago7.15.5 is planned for August 2006
Daniel Stenberg [Sat, 8 Jul 2006 18:49:41 +0000 (18:49 +0000)]
7.15.5 is planned for August 2006

18 years agomention the shared DNS stuff
Daniel Stenberg [Fri, 7 Jul 2006 23:08:03 +0000 (23:08 +0000)]
mention the shared DNS stuff

18 years agoIngmar Runge provided a source snippet that caused a crash. The reason for
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).

18 years agomention the by-default "sharing"
Daniel Stenberg [Fri, 7 Jul 2006 22:07:10 +0000 (22:07 +0000)]
mention the by-default "sharing"

18 years agoyassl can be used now
Daniel Stenberg [Fri, 7 Jul 2006 20:48:51 +0000 (20:48 +0000)]
yassl can be used now

18 years agoHTTP Pipelining is for GET and HEAD requests only.
Daniel Stenberg [Fri, 7 Jul 2006 20:45:56 +0000 (20:45 +0000)]
HTTP Pipelining is for GET and HEAD requests only.

18 years agoFixed building curllib.dsp when running make outside the source tree.
Dan Fandrich [Fri, 7 Jul 2006 18:37:14 +0000 (18:37 +0000)]
Fixed building curllib.dsp when running make outside the source tree.

18 years agoFinally get rid of CURL_CHECK_HEADERS_ONCE since it adds very little value and has...
Yang Tse [Fri, 7 Jul 2006 17:34:40 +0000 (17:34 +0000)]
Finally get rid of CURL_CHECK_HEADERS_ONCE since it adds very little value and has portability issues.

Change some shell if...then...fi tests into case...esac tests which demand less resources.