platform/upstream/curl.git
17 years agoUse curl_global_init() and curl_global_cleanup().
Yang Tse [Wed, 25 Oct 2006 05:59:46 +0000 (05:59 +0000)]
Use curl_global_init() and curl_global_cleanup().
Improve cleanup in case of initialization failure.

17 years agoother pipelining fixes by Ravi Pratap, that now makes pipelines get used better
Daniel Stenberg [Tue, 24 Oct 2006 21:14:40 +0000 (21:14 +0000)]
other pipelining fixes by Ravi Pratap, that now makes pipelines get used better

17 years agoAbort test if it seems that it would have run forever. This is just to prevent
Yang Tse [Tue, 24 Oct 2006 15:51:42 +0000 (15:51 +0000)]
Abort test if it seems that it would have run forever. This is just to prevent
test hanging and actually is an indication that there's a condition that is
not being properly handled at some point in the library.

Remove a pair of braces and adjust indentation appropriately.

17 years agothe check in ConnectionExists() for not re-using a non-resolved connection now
Daniel Stenberg [Mon, 23 Oct 2006 20:41:50 +0000 (20:41 +0000)]
the check in ConnectionExists() for not re-using a non-resolved connection now
applies for asynch name resolves in general and not only ares

17 years agoRavi Pratap provided a major update with pipelining fixes. We also no longer
Daniel Stenberg [Mon, 23 Oct 2006 20:34:56 +0000 (20:34 +0000)]
Ravi Pratap provided a major update with pipelining fixes. We also no longer
re-use connections (for pipelining) before the name resolving is done.

17 years agoAvoid trying to compare more than strlen bytes.
Yang Tse [Mon, 23 Oct 2006 19:16:19 +0000 (19:16 +0000)]
Avoid trying to compare more than strlen bytes.

17 years ago30 seconds isn't long enough for this test on a loaded server.
Dan Fandrich [Mon, 23 Oct 2006 19:15:14 +0000 (19:15 +0000)]
30 seconds isn't long enough for this test on a loaded server.

17 years agoReplace is*() macros with our own IS*() ones.
Yang Tse [Mon, 23 Oct 2006 19:14:54 +0000 (19:14 +0000)]
Replace is*() macros with our own IS*() ones.

17 years agoNir Soffer fixed a cp line and got rid of an rm
Daniel Stenberg [Sun, 22 Oct 2006 22:18:24 +0000 (22:18 +0000)]
Nir Soffer fixed a cp line and got rid of an rm

17 years agountil we learn how to use Makefile.inc from here, I've added socks.o in here
Daniel Stenberg [Sun, 22 Oct 2006 07:43:34 +0000 (07:43 +0000)]
until we learn how to use Makefile.inc from here, I've added socks.o in here
as well

17 years agoProvide 'datarootdir' parameter to shutup configuration warning,
Yang Tse [Sat, 21 Oct 2006 17:08:48 +0000 (17:08 +0000)]
Provide 'datarootdir' parameter to shutup configuration warning,
'packages/EPM/curl.list.in seems to ignore the --datarootdir setting'

17 years agoFix misplaced runtime library specification for 'release-dll' target
Yang Tse [Sat, 21 Oct 2006 16:25:31 +0000 (16:25 +0000)]
Fix misplaced runtime library specification for 'release-dll' target

17 years agorely on the global LDADD instead of having specific ones for every program
Daniel Stenberg [Sat, 21 Oct 2006 13:00:51 +0000 (13:00 +0000)]
rely on the global LDADD instead of having specific ones for every program

17 years agoNir Soffer for his Makefile.am fix
Daniel Stenberg [Sat, 21 Oct 2006 12:49:45 +0000 (12:49 +0000)]
Nir Soffer for his Makefile.am fix

17 years agoFix copy-paste error
Yang Tse [Sat, 21 Oct 2006 12:36:10 +0000 (12:36 +0000)]
Fix copy-paste error

17 years agoCompiler warning fix
Yang Tse [Sat, 21 Oct 2006 12:35:16 +0000 (12:35 +0000)]
Compiler warning fix

17 years agoNir Soffer made the tests/libtest/Makefile.am use a proper variable for all
Daniel Stenberg [Sat, 21 Oct 2006 11:40:04 +0000 (11:40 +0000)]
Nir Soffer made the tests/libtest/Makefile.am use a proper variable for all
the single test applications' link and dependences, so that you easier can
override those from the command line when using make.

17 years agoArmel Asselin separated CA cert verification problems from problems with
Daniel Stenberg [Sat, 21 Oct 2006 11:32:05 +0000 (11:32 +0000)]
Armel Asselin separated CA cert verification problems from problems with
reading the (local) CA cert file to let users easier pinpoint the actual
problem. CURLE_SSL_CACERT_BADFILE (77) is the new libcurl error code.

17 years agoCompiler warning fix
Yang Tse [Sat, 21 Oct 2006 10:54:41 +0000 (10:54 +0000)]
Compiler warning fix

17 years agomade the arrow for 'Send SSL data' point in the right direction!
Daniel Stenberg [Fri, 20 Oct 2006 21:26:10 +0000 (21:26 +0000)]
made the arrow for 'Send SSL data' point in the right direction!

17 years agoCompiler warning fix
Yang Tse [Fri, 20 Oct 2006 17:54:05 +0000 (17:54 +0000)]
Compiler warning fix

17 years agoSince now src/setup.h includes setup_once.h, src/config-win32.h needs
Yang Tse [Fri, 20 Oct 2006 17:16:06 +0000 (17:16 +0000)]
Since now src/setup.h includes setup_once.h, src/config-win32.h needs
the definitions for the return type and arguments types of functions
recv() and send().

17 years agoOops! Actually set the limit to 30 seconds.
Yang Tse [Fri, 20 Oct 2006 15:45:12 +0000 (15:45 +0000)]
Oops! Actually set the limit to 30 seconds.

17 years agoDecrease the posibility of aborting a test which actually is not
Yang Tse [Fri, 20 Oct 2006 15:39:54 +0000 (15:39 +0000)]
Decrease the posibility of aborting a test which actually is not
stale by replacing loop counters with timeouts. In this way the
main loop of the test will be allowed to run up to 30 seconds on
any platform before aborting it.

17 years agoWhen a resolve is made on a pipelined connection we need to detect it properly
Daniel Stenberg [Fri, 20 Oct 2006 12:25:39 +0000 (12:25 +0000)]
When a resolve is made on a pipelined connection we need to detect it properly
(when the resoling isn't completede yet) and not confuse it with a simple
connection re-use (non-pipelined).

17 years agoSet loop2 counter limit to 60 on this test to avoid a false positive.
Yang Tse [Thu, 19 Oct 2006 23:35:52 +0000 (23:35 +0000)]
Set loop2 counter limit to 60 on this test to avoid a false positive.

17 years agoReplace tabs with spaces and Compiler warning fix.
Yang Tse [Thu, 19 Oct 2006 22:49:33 +0000 (22:49 +0000)]
Replace tabs with spaces and Compiler warning fix.

17 years agoCompiler warning fix
Yang Tse [Thu, 19 Oct 2006 22:48:33 +0000 (22:48 +0000)]
Compiler warning fix

17 years agoWhen aborting, show loop counter values when more than one counter exists.
Yang Tse [Thu, 19 Oct 2006 21:12:27 +0000 (21:12 +0000)]
When aborting, show loop counter values when more than one counter exists.

17 years agoAbort test if it seems that it would have run forever. This is just to prevent
Yang Tse [Thu, 19 Oct 2006 17:29:25 +0000 (17:29 +0000)]
Abort test if it seems that it would have run forever. This is just to prevent
test hanging and actually is an indication that there's a condition that is
not being properly handled at some point in the library.

Loop counter limits might need to be further increased on false positives.

17 years agoHere's an effort to avoid saying 'data not shown' in the debug parts when the
Daniel Stenberg [Thu, 19 Oct 2006 14:28:50 +0000 (14:28 +0000)]
Here's an effort to avoid saying 'data not shown' in the debug parts when the
data is actually shown on screen. Like when you do 'curl -v host' with data
and debug info sent to the same terminal.

17 years agoBuilds using synchronous name resolver dislike marking the connection as async.
Yang Tse [Thu, 19 Oct 2006 02:30:02 +0000 (02:30 +0000)]
Builds using synchronous name resolver dislike marking the connection as async.

17 years agoSync with lib/setup_once.h
Yang Tse [Wed, 18 Oct 2006 21:25:12 +0000 (21:25 +0000)]
Sync with lib/setup_once.h

17 years agoCheck for USE_WINSOCK instead of WIN32 where the check was done
Yang Tse [Wed, 18 Oct 2006 21:05:40 +0000 (21:05 +0000)]
Check for USE_WINSOCK instead of WIN32 where the check was done
to verify winsock API availability.

17 years agoIntroduce symbol USE_WINSOCK which will be defined when
Yang Tse [Wed, 18 Oct 2006 15:57:49 +0000 (15:57 +0000)]
Introduce symbol USE_WINSOCK which will be defined when
using winsock or winsock2 API.

17 years agothe expire timer is a bit too annoying to see all the time ;-)
Daniel Stenberg [Wed, 18 Oct 2006 15:11:24 +0000 (15:11 +0000)]
the expire timer is a bit too annoying to see all the time ;-)

17 years agoWhen a connection is re-used, it can be flagged for re-use before the name
Daniel Stenberg [Wed, 18 Oct 2006 15:10:49 +0000 (15:10 +0000)]
When a connection is re-used, it can be flagged for re-use before the name
resolving is completed so we must make sure to survive it and mark the
connection as async (ie not yet connected completely).

17 years agouse the return code from lseek() to detect problems and bail out if so
Daniel Stenberg [Wed, 18 Oct 2006 14:47:58 +0000 (14:47 +0000)]
use the return code from lseek() to detect problems and bail out if so

17 years agoAdded ISPRINT() required for src/main.c.
Gisle Vanem [Wed, 18 Oct 2006 13:50:23 +0000 (13:50 +0000)]
Added ISPRINT() required for src/main.c.

17 years agoTor's spell fixes
Daniel Stenberg [Wed, 18 Oct 2006 12:59:02 +0000 (12:59 +0000)]
Tor's spell fixes

17 years agochanges done the last few days
Daniel Stenberg [Wed, 18 Oct 2006 11:13:56 +0000 (11:13 +0000)]
changes done the last few days

17 years agocut out matching host names starting with telnet or ftps, since they hardly
Daniel Stenberg [Wed, 18 Oct 2006 11:13:39 +0000 (11:13 +0000)]
cut out matching host names starting with telnet or ftps, since they hardly
ever actually are used

17 years agothe "work in progress" for #25 was ditched a long time ago
Daniel Stenberg [Wed, 18 Oct 2006 07:53:24 +0000 (07:53 +0000)]
the "work in progress" for #25 was ditched a long time ago

17 years agoReplace is*() macros with our own IS*() ones.
Yang Tse [Wed, 18 Oct 2006 03:42:06 +0000 (03:42 +0000)]
Replace is*() macros with our own IS*() ones.
Get rid of non ANSI/ISO isascii().

17 years agoMove definition of IS*() macros to setup_once.h
Yang Tse [Wed, 18 Oct 2006 03:41:19 +0000 (03:41 +0000)]
Move definition of IS*() macros to setup_once.h

17 years agoFixed compile error in HAVE_SIGACTION case.
Dan Fandrich [Tue, 17 Oct 2006 21:45:37 +0000 (21:45 +0000)]
Fixed compile error in HAVE_SIGACTION case.

17 years agoAvoid typecasting a signed char to an int when using is*() functions, as that
Daniel Stenberg [Tue, 17 Oct 2006 21:32:56 +0000 (21:32 +0000)]
Avoid typecasting a signed char to an int when using is*() functions, as that
could very well cause a negate number get passed in and thus cause reading
outside of the array usually used for this purpose.

We avoid this by using the uppercase macro versions introduced just now that
does some extra crazy typecasts to avoid byte codes > 127 to cause negative
int values.

17 years agoclear the struct size not the pointer size, pointed out in bug report
Daniel Stenberg [Tue, 17 Oct 2006 20:34:11 +0000 (20:34 +0000)]
clear the struct size not the pointer size, pointed out in bug report
#1579171

17 years agobuildconf already runs ares/buildconf by itself if there is an ares subdir
Daniel Stenberg [Tue, 17 Oct 2006 11:46:42 +0000 (11:46 +0000)]
buildconf already runs ares/buildconf by itself if there is an ares subdir
present, so there's no use to doing it again in this script!

17 years agoExplicit typecast for Curl_debug() size argument
Yang Tse [Tue, 17 Oct 2006 10:04:13 +0000 (10:04 +0000)]
Explicit typecast for Curl_debug() size argument

17 years agoTypo
Yang Tse [Tue, 17 Oct 2006 09:07:38 +0000 (09:07 +0000)]
Typo

17 years agomake the low_speed check set the expire timer so that it has a chance to work
Daniel Stenberg [Tue, 17 Oct 2006 09:05:44 +0000 (09:05 +0000)]
make the low_speed check set the expire timer so that it has a chance to work
even when using curl_multi_socket() or even using the multi_perform() when
relying on multi_timeout() to be good.

17 years agoPlease welcome our new haxx.se curl mirror, for really fast Swedish access.
Daniel Stenberg [Tue, 17 Oct 2006 08:07:48 +0000 (08:07 +0000)]
Please welcome our new haxx.se curl mirror, for really fast Swedish access.

17 years agoJeff helped me pinpoint that we didn't properly set the expire timer during
Daniel Stenberg [Tue, 17 Oct 2006 08:06:27 +0000 (08:06 +0000)]
Jeff helped me pinpoint that we didn't properly set the expire timer during
c-ares name resolves, but now we do!

17 years agofix the name resolve abort timeout calculation (when signals are used)
Daniel Stenberg [Tue, 17 Oct 2006 08:05:41 +0000 (08:05 +0000)]
fix the name resolve abort timeout calculation (when signals are used)

17 years agoCompiler warning fix
Yang Tse [Tue, 17 Oct 2006 02:31:06 +0000 (02:31 +0000)]
Compiler warning fix

17 years agoAdded a check in configure that simply tries to run a program (not when
Daniel Stenberg [Mon, 16 Oct 2006 08:30:54 +0000 (08:30 +0000)]
Added a check in configure that simply tries to run a program (not when
cross-compiling) in order to detect problems with run-time libraries that
otherwise would occur when the sizeof tests for curl_off_t would run and
thus be much more confusing to users. The check of course should run after
all lib-checks are done and before any other test is used that would run an
executable built for testing-purposes.

17 years agoCompiler warning fix
Yang Tse [Sun, 15 Oct 2006 23:13:12 +0000 (23:13 +0000)]
Compiler warning fix

17 years agoReplace ";;" with ";".
Gisle Vanem [Sun, 15 Oct 2006 20:28:03 +0000 (20:28 +0000)]
Replace ";;" with ";".

17 years agoRearranged target HAVE_x section.
Gisle Vanem [Sun, 15 Oct 2006 19:41:15 +0000 (19:41 +0000)]
Rearranged target HAVE_x section.

17 years agoDeclare our own timeval struct if HAVE_STRUCT_TIMEVAL is not defined
Yang Tse [Sat, 14 Oct 2006 12:02:19 +0000 (12:02 +0000)]
Declare our own timeval struct if HAVE_STRUCT_TIMEVAL is not defined

17 years agoDefine HAVE_STRUCT_TIMEVAL as appropriate for platforms that lack autotools support
Yang Tse [Sat, 14 Oct 2006 12:01:44 +0000 (12:01 +0000)]
Define HAVE_STRUCT_TIMEVAL as appropriate for platforms that lack autotools support

17 years agoPrevent ares_getsock() to overflow if more than 16 sockets are used.
Daniel Stenberg [Fri, 13 Oct 2006 21:25:11 +0000 (21:25 +0000)]
Prevent ares_getsock() to overflow if more than 16 sockets are used.

17 years agoThe tagging of application/x-www-form-urlencoded POST body data sent
Dan Fandrich [Fri, 13 Oct 2006 21:02:27 +0000 (21:02 +0000)]
The tagging of application/x-www-form-urlencoded POST body data sent
to the CURLOPT_DEBUGFUNCTION callback has been fixed (it was erroneously
included as part of the header).  A message was also added to the
command line tool to show when data is being sent, enabled when
--verbose is used.

17 years agoprint the actual (externally known) easy handle and not the internal container
Daniel Stenberg [Fri, 13 Oct 2006 14:54:36 +0000 (14:54 +0000)]
print the actual (externally known) easy handle and not the internal container
for it

17 years agoAdded comments about checking return code and the maxfd counter
Daniel Stenberg [Fri, 13 Oct 2006 14:01:19 +0000 (14:01 +0000)]
Added comments about checking return code and the maxfd counter

17 years agoAdded curl_multi_dump() when built with CURLDEBUG - this is not a stable public
Daniel Stenberg [Fri, 13 Oct 2006 07:11:26 +0000 (07:11 +0000)]
Added curl_multi_dump() when built with CURLDEBUG - this is not a stable public
function, this is only meant to allow easier tracking of the internal handle's
state and what sockets they use. Only for research and development.

17 years agoCheck for struct timeval at configuration time
Yang Tse [Fri, 13 Oct 2006 01:35:14 +0000 (01:35 +0000)]
Check for struct timeval at configuration time

17 years agoghiper now uses the timer callback in the multi interface
Daniel Stenberg [Thu, 12 Oct 2006 21:26:50 +0000 (21:26 +0000)]
ghiper now uses the timer callback in the multi interface

17 years agoavoid an overflow if an excessive amount of servers are used
Daniel Stenberg [Thu, 12 Oct 2006 16:47:50 +0000 (16:47 +0000)]
avoid an overflow if an excessive amount of servers are used

17 years agoclarify more
Daniel Stenberg [Thu, 12 Oct 2006 14:35:20 +0000 (14:35 +0000)]
clarify more

17 years agoStarting now, adding an easy handle to a multi stack that was already added
Daniel Stenberg [Thu, 12 Oct 2006 14:30:47 +0000 (14:30 +0000)]
Starting now, adding an easy handle to a multi stack that was already added
to a multi stack will cause CURLM_BAD_EASY_HANDLE to get returned.

17 years agodeleted #19 since it concerted FTP third party transfers and they are no longer
Daniel Stenberg [Thu, 12 Oct 2006 09:02:46 +0000 (09:02 +0000)]
deleted #19 since it concerted FTP third party transfers and they are no longer
supported

17 years agowe've cut out third party transfers
Daniel Stenberg [Thu, 12 Oct 2006 08:55:01 +0000 (08:55 +0000)]
we've cut out third party transfers

17 years agopoint out the sslcert web page for -k/--insecure
Daniel Stenberg [Thu, 12 Oct 2006 08:52:20 +0000 (08:52 +0000)]
point out the sslcert web page for -k/--insecure

17 years agoJeff Pohlmeyer has been working with the hiperfifo.c example source code,
Daniel Stenberg [Thu, 12 Oct 2006 08:36:47 +0000 (08:36 +0000)]
Jeff Pohlmeyer has been working with the hiperfifo.c example source code,
and while doing so it became apparent that the current timeout system for
the socket API really was a bit awkward since it become quite some work to
be sure we have the correct timeout set.

Jeff then provided the new CURLMOPT_TIMERFUNCTION that is yet another
callback the app can set to get to know when the general timeout time
changes and thus for an application like hiperfifo.c it makes everything a
lot easier and nicer. There's a CURLMOPT_TIMERDATA option too of course in
good old libcurl tradition.

17 years agothe textual arraw for "Send SSL data" was the wrong way
Daniel Stenberg [Thu, 12 Oct 2006 08:14:13 +0000 (08:14 +0000)]
the textual arraw for "Send SSL data" was the wrong way

17 years agoInclusion of time header files based on header existance
Yang Tse [Thu, 12 Oct 2006 03:57:33 +0000 (03:57 +0000)]
Inclusion of time header files based on header existance

17 years agoRemove redundant __CYGWIN__ symbol check
Yang Tse [Wed, 11 Oct 2006 16:01:16 +0000 (16:01 +0000)]
Remove redundant __CYGWIN__ symbol check

17 years agoCompiler warning fix
Yang Tse [Tue, 10 Oct 2006 23:58:02 +0000 (23:58 +0000)]
Compiler warning fix

17 years agoCall curl_global_cleanup() in all code paths before exiting test
Yang Tse [Tue, 10 Oct 2006 23:50:37 +0000 (23:50 +0000)]
Call curl_global_cleanup() in all code paths before exiting test

17 years agorepair id string
Daniel Stenberg [Tue, 10 Oct 2006 19:48:24 +0000 (19:48 +0000)]
repair id string

17 years agoAdded ghiper.c, Jeff Pohlmeyer's example code using the curl_multi_socket()
Daniel Stenberg [Tue, 10 Oct 2006 19:46:57 +0000 (19:46 +0000)]
Added ghiper.c, Jeff Pohlmeyer's example code using the curl_multi_socket()
API with glib2

17 years agomark the handle as no longer having a broken pipe when a transfer has failed
Daniel Stenberg [Tue, 10 Oct 2006 14:23:34 +0000 (14:23 +0000)]
mark the handle as no longer having a broken pipe when a transfer has failed

17 years agoAdded test case 536 in an attempt to add Bogdan Nicula's problematic case
Daniel Stenberg [Mon, 9 Oct 2006 21:29:53 +0000 (21:29 +0000)]
Added test case 536 in an attempt to add Bogdan Nicula's problematic case
with multi interface and pipelining. This test just works and did not repeat
the problem his test code showed, but could still serve as a useful test.

17 years agoused for test 535 too
Daniel Stenberg [Mon, 9 Oct 2006 21:26:09 +0000 (21:26 +0000)]
used for test 535 too

17 years agominor indent fix
Daniel Stenberg [Mon, 9 Oct 2006 21:24:50 +0000 (21:24 +0000)]
minor indent fix

17 years agowhen going to completed due to error, mark the handle as not in a pipeline
Daniel Stenberg [Mon, 9 Oct 2006 21:24:34 +0000 (21:24 +0000)]
when going to completed due to error, mark the handle as not in a pipeline
anymore

17 years agonew mirrors
Daniel Stenberg [Mon, 9 Oct 2006 21:04:48 +0000 (21:04 +0000)]
new mirrors

17 years agokill trailing whitespace
Daniel Stenberg [Mon, 9 Oct 2006 14:59:53 +0000 (14:59 +0000)]
kill trailing whitespace

17 years agochanged the wording about removal of internal headers with -H
Daniel Stenberg [Mon, 9 Oct 2006 14:54:11 +0000 (14:54 +0000)]
changed the wording about removal of internal headers with -H

17 years agoCompiler warning fix
Yang Tse [Mon, 9 Oct 2006 11:21:40 +0000 (11:21 +0000)]
Compiler warning fix

17 years agoBogdan Nicula's second test case (posted Sun, 08 Oct 2006) converted to test
Daniel Stenberg [Mon, 9 Oct 2006 06:58:05 +0000 (06:58 +0000)]
Bogdan Nicula's second test case (posted Sun, 08 Oct 2006) converted to test
case 535 and it now runs fine. Again a problem with the pipelining code not
taking all possible (error) conditions into account.

17 years agoCygwin 1.5.21 needs this hack to pass test 160.
Yang Tse [Mon, 9 Oct 2006 00:35:36 +0000 (00:35 +0000)]
Cygwin 1.5.21 needs this hack to pass test 160.
In this way 304 tests out of 304 reported OK.

17 years agoslightly improved
Daniel Stenberg [Sun, 8 Oct 2006 22:19:25 +0000 (22:19 +0000)]
slightly improved

17 years agoclarified more
Daniel Stenberg [Sun, 8 Oct 2006 21:41:22 +0000 (21:41 +0000)]
clarified more

17 years agotest 534 added in an attempt to repeat Bogdan Nicula's bug...
Daniel Stenberg [Sun, 8 Oct 2006 10:51:53 +0000 (10:51 +0000)]
test 534 added in an attempt to repeat Bogdan Nicula's bug...

17 years agomodified lib533 to accept both URLs on the command line
Daniel Stenberg [Sun, 8 Oct 2006 08:50:12 +0000 (08:50 +0000)]
modified lib533 to accept both URLs on the command line

17 years agoFix a "sockfilt" leak. When a new 'data' connection sockfilt server is started,
Daniel Stenberg [Sun, 8 Oct 2006 08:43:32 +0000 (08:43 +0000)]
Fix a "sockfilt" leak. When a new 'data' connection sockfilt server is started,
make sure that a previously used one is killed first (since they re-use the
same .pid file etc)

17 years agodon't display or act on state changes that doesn't actually change state
Daniel Stenberg [Sat, 7 Oct 2006 21:04:57 +0000 (21:04 +0000)]
don't display or act on state changes that doesn't actually change state