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.
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
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.
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
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.
Yang Tse [Mon, 23 Oct 2006 19:16:19 +0000 (19:16 +0000)]
Avoid trying to compare more than strlen bytes.
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.
Yang Tse [Mon, 23 Oct 2006 19:14:54 +0000 (19:14 +0000)]
Replace is*() macros with our own IS*() ones.
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
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
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'
Yang Tse [Sat, 21 Oct 2006 16:25:31 +0000 (16:25 +0000)]
Fix misplaced runtime library specification for 'release-dll' target
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
Daniel Stenberg [Sat, 21 Oct 2006 12:49:45 +0000 (12:49 +0000)]
Nir Soffer for his Makefile.am fix
Yang Tse [Sat, 21 Oct 2006 12:36:10 +0000 (12:36 +0000)]
Fix copy-paste error
Yang Tse [Sat, 21 Oct 2006 12:35:16 +0000 (12:35 +0000)]
Compiler warning fix
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.
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.
Yang Tse [Sat, 21 Oct 2006 10:54:41 +0000 (10:54 +0000)]
Compiler warning fix
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!
Yang Tse [Fri, 20 Oct 2006 17:54:05 +0000 (17:54 +0000)]
Compiler warning fix
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().
Yang Tse [Fri, 20 Oct 2006 15:45:12 +0000 (15:45 +0000)]
Oops! Actually set the limit to 30 seconds.
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.
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).
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.
Yang Tse [Thu, 19 Oct 2006 22:49:33 +0000 (22:49 +0000)]
Replace tabs with spaces and Compiler warning fix.
Yang Tse [Thu, 19 Oct 2006 22:48:33 +0000 (22:48 +0000)]
Compiler warning fix
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.
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.
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.
Yang Tse [Thu, 19 Oct 2006 02:30:02 +0000 (02:30 +0000)]
Builds using synchronous name resolver dislike marking the connection as async.
Yang Tse [Wed, 18 Oct 2006 21:25:12 +0000 (21:25 +0000)]
Sync with lib/setup_once.h
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.
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.
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 ;-)
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).
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
Gisle Vanem [Wed, 18 Oct 2006 13:50:23 +0000 (13:50 +0000)]
Added ISPRINT() required for src/main.c.
Daniel Stenberg [Wed, 18 Oct 2006 12:59:02 +0000 (12:59 +0000)]
Tor's spell fixes
Daniel Stenberg [Wed, 18 Oct 2006 11:13:56 +0000 (11:13 +0000)]
changes done the last few days
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
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
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().
Yang Tse [Wed, 18 Oct 2006 03:41:19 +0000 (03:41 +0000)]
Move definition of IS*() macros to setup_once.h
Dan Fandrich [Tue, 17 Oct 2006 21:45:37 +0000 (21:45 +0000)]
Fixed compile error in HAVE_SIGACTION case.
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.
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
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!
Yang Tse [Tue, 17 Oct 2006 10:04:13 +0000 (10:04 +0000)]
Explicit typecast for Curl_debug() size argument
Yang Tse [Tue, 17 Oct 2006 09:07:38 +0000 (09:07 +0000)]
Typo
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.
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.
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!
Daniel Stenberg [Tue, 17 Oct 2006 08:05:41 +0000 (08:05 +0000)]
fix the name resolve abort timeout calculation (when signals are used)
Yang Tse [Tue, 17 Oct 2006 02:31:06 +0000 (02:31 +0000)]
Compiler warning fix
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.
Yang Tse [Sun, 15 Oct 2006 23:13:12 +0000 (23:13 +0000)]
Compiler warning fix
Gisle Vanem [Sun, 15 Oct 2006 20:28:03 +0000 (20:28 +0000)]
Replace ";;" with ";".
Gisle Vanem [Sun, 15 Oct 2006 19:41:15 +0000 (19:41 +0000)]
Rearranged target HAVE_x section.
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
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
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.
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.
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
Daniel Stenberg [Fri, 13 Oct 2006 14:01:19 +0000 (14:01 +0000)]
Added comments about checking return code and the maxfd counter
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.
Yang Tse [Fri, 13 Oct 2006 01:35:14 +0000 (01:35 +0000)]
Check for struct timeval at configuration time
Daniel Stenberg [Thu, 12 Oct 2006 21:26:50 +0000 (21:26 +0000)]
ghiper now uses the timer callback in the multi interface
Daniel Stenberg [Thu, 12 Oct 2006 16:47:50 +0000 (16:47 +0000)]
avoid an overflow if an excessive amount of servers are used
Daniel Stenberg [Thu, 12 Oct 2006 14:35:20 +0000 (14:35 +0000)]
clarify more
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.
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
Daniel Stenberg [Thu, 12 Oct 2006 08:55:01 +0000 (08:55 +0000)]
we've cut out third party transfers
Daniel Stenberg [Thu, 12 Oct 2006 08:52:20 +0000 (08:52 +0000)]
point out the sslcert web page for -k/--insecure
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.
Daniel Stenberg [Thu, 12 Oct 2006 08:14:13 +0000 (08:14 +0000)]
the textual arraw for "Send SSL data" was the wrong way
Yang Tse [Thu, 12 Oct 2006 03:57:33 +0000 (03:57 +0000)]
Inclusion of time header files based on header existance
Yang Tse [Wed, 11 Oct 2006 16:01:16 +0000 (16:01 +0000)]
Remove redundant __CYGWIN__ symbol check
Yang Tse [Tue, 10 Oct 2006 23:58:02 +0000 (23:58 +0000)]
Compiler warning fix
Yang Tse [Tue, 10 Oct 2006 23:50:37 +0000 (23:50 +0000)]
Call curl_global_cleanup() in all code paths before exiting test
Daniel Stenberg [Tue, 10 Oct 2006 19:48:24 +0000 (19:48 +0000)]
repair id string
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
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
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.
Daniel Stenberg [Mon, 9 Oct 2006 21:26:09 +0000 (21:26 +0000)]
used for test 535 too
Daniel Stenberg [Mon, 9 Oct 2006 21:24:50 +0000 (21:24 +0000)]
minor indent fix
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
Daniel Stenberg [Mon, 9 Oct 2006 21:04:48 +0000 (21:04 +0000)]
new mirrors
Daniel Stenberg [Mon, 9 Oct 2006 14:59:53 +0000 (14:59 +0000)]
kill trailing whitespace
Daniel Stenberg [Mon, 9 Oct 2006 14:54:11 +0000 (14:54 +0000)]
changed the wording about removal of internal headers with -H
Yang Tse [Mon, 9 Oct 2006 11:21:40 +0000 (11:21 +0000)]
Compiler warning fix
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.
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.
Daniel Stenberg [Sun, 8 Oct 2006 22:19:25 +0000 (22:19 +0000)]
slightly improved
Daniel Stenberg [Sun, 8 Oct 2006 21:41:22 +0000 (21:41 +0000)]
clarified more
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...
Daniel Stenberg [Sun, 8 Oct 2006 08:50:12 +0000 (08:50 +0000)]
modified lib533 to accept both URLs on the command line
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)
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