summaryrefslogtreecommitdiff
path: root/lib/hostthre.c
Commit message (Collapse)AuthorAgeFilesLines
* remove the CVSish $Id$ linesDaniel Stenberg2010-03-241-1/+0
|
* used allways #ifdef / #ifndef;Gunter Knauf2010-02-131-27/+29
| | | | moved gethostbyname_thread() to #else case to avoid 'not used' compiler warning.
* replaced tabs by spaces, removed trailing tabs/spaces.Gunter Knauf2010-02-131-13/+13
|
* Fix compiler warning: local variable may be used without having been ↵Yang Tse2010-02-021-1/+1
| | | | initialized.
* onstantine Sapuntzakis threaded resolver enhancementsYang Tse2010-01-261-4/+0
|
* Constantine Sapuntzakis threaded resolver enhancementsYang Tse2010-01-251-405/+224
|
* Constantine Sapuntzakis refactoring of async callbacks, allowingYang Tse2010-01-221-8/+10
| | | | | removal of Curl_addrinfo_copy(), Curl_addrinfo6_callback(), and Curl_addrinfo4_callback()
* VMS specific preprocessor symbol checking adjustmentsYang Tse2009-12-301-1/+1
|
* Make usage of calloc()'s arguments consistent with rest of code baseYang Tse2009-11-181-1/+1
|
* libcurl's memory.h renamed to curl_memory.hYang Tse2009-04-211-1/+1
|
* Moved potential inclusion of system's malloc.h and memory.h header files toYang Tse2009-04-211-4/+1
| | | | | setup_once.h. Inclusion of each header file is based on the definition of NEED_MALLOC_H and NEED_MEMORY_H respectively.
* Merged existing IPv4 and IPv6 Curl_ip2addr functions into a single oneYang Tse2008-11-061-4/+4
| | | | which now also takes a protocol address family argument.
* init_resolve_thread() needs 'hints' on the native form.Gisle Vanem2008-11-011-2/+2
|
* Use our Curl_addrinfo definition even when an addrinfo struct is available.Yang Tse2008-10-301-4/+5
| | | | Use a wrapper function to call system's getaddrinfo().
* Removed unneeded includes of signal.h and setjmp.hDan Fandrich2008-09-291-4/+0
|
* Removed TRACE() code.Gisle Vanem2008-08-061-63/+2
|
* Eliminate a unnecessary socket creation in Curl_getaddrinfo for an IPv4Dan Fandrich2008-07-291-26/+27
| | | | address in an IPv6 capable libcurl.
* Bug report #1888932 (http://curl.haxx.se/bug/view.cgi?id=1888932) pointsYang Tse2008-02-101-1/+5
| | | | | | out and provides test program that demonstrates that libcurl might not set error description message for error CURLE_COULDNT_RESOLVE_HOST for Windows threaded name resolver builds. Fixed now.
* removed space after if and while before the parenthesis for better source codeDaniel Stenberg2007-11-051-55/+55
| | | | consistency
* constify 'hostname' in init_thread_sync_data(). Simply clearGisle Vanem2007-06-111-13/+8
| | | | the whole 'tsd' structure on exit in destroy_thread_sync_data().
* WaitForSingleObject() uses a millisecond timeout and CURL_TIMEOUT_RESOLVE isDaniel Stenberg2007-05-201-1/+1
| | | | counted in seconds...
* Removed inclusion of <sys/types.h> and <sys/stat.h> in .c-filesGisle Vanem2007-02-261-3/+0
| | | | since they're already included through "setup.h".
* curlassert macro replaced with DEBUGASSERT macro defined in setup_once.hYang Tse2007-02-211-2/+2
|
* use macros ERRNO, SET_ERRNO(), SOCKERRNO and SET_SOCKERRNO() for errno handlingYang Tse2007-02-161-20/+22
|
* - Michael Wallner provided a patch that adds support for CURLOPT_TIMEOUT_MSDaniel Stenberg2007-02-051-2/+2
| | | | | | | | | | | | | 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.
* clear the struct size not the pointer size, pointed out in bug reportDaniel Stenberg2006-10-171-1/+1
| | | | #1579171
* Simplify check for NEED_MALLOC_H, and make more explicit that NEED_MALLOC_H ↵Yang Tse2006-07-251-1/+1
| | | | shall be defined if <malloc.h> header file must be included even when including <stdlib.h>.
* Constify 'hostname' and 'service' to various resolver functions.Gisle Vanem2006-07-211-2/+2
|
* include <malloc.h> only if HAVE_MALLOC_H and NEED_MALLOC_H are both defined.Yang Tse2006-07-111-1/+1
|
* Correct the trace for WinCE.Gisle Vanem2006-07-071-2/+4
|
* WinCE uses CreateThread(). Hence error is not in 'errno'.Gisle Vanem2006-07-071-0/+2
|
* Removed copying 'stderr' since it doesn't have the desiredGisle Vanem2006-07-071-15/+0
| | | | effect.
* Use the HAVE_MALLOC_H and HAVE_PROCESS_H definesGisle Vanem2006-04-261-7/+5
| | | | (more logical).
* Add "multiif.h" for GETSOCK_WRITESOCK() macro.Gisle Vanem2006-04-121-0/+1
|
* adjusted to the new internal *_getsock() concept for providing info internallyDaniel Stenberg2006-04-111-9/+11
| | | | about what sockets to wait for what action on
* Yang Tse: use static on file-private functionsDaniel Stenberg2005-11-241-0/+4
|
* Removed the use of AI_CANONNAME in the IPv6-enabled resolver functions sinceDaniel Stenberg2005-11-081-0/+2
| | | | | | | we really have no use for reverse lookups of the address. I truly hope these are the last reverse lookups we had lingering in the code!
* Bradford Bruce made the windows resolver code properly returnDaniel Stenberg2005-10-211-5/+12
| | | | | CURLE_COULDNT_RESOLVE_PROXY and CURLE_COULDNT_RESOLVE_HOST on resolving errors (as documented).
* Fix for building with MS Visual-C and single-threadedGisle Vanem2005-10-021-0/+4
| | | | runtime libs.
* keep 'socktype' in the connectdata struct and make sure we use that for allDaniel Stenberg2005-09-161-5/+5
| | | | protocol sockets even if the resolved address may say otherwise
* Fix warning about missing initializers.Gisle Vanem2005-09-061-2/+2
|
* Use SOCK_DGRAM for TFTP. Consider setting this up at one central place, weDaniel Stenberg2005-09-061-1/+4
| | | | have this check done on far too many places by now...
* use it as 'struct addrinfo' so perhaps it builds on mingw againDaniel Stenberg2005-08-311-1/+1
|
* Igor Polyakov fixed a rather nasty problem with the threaded name resolverDaniel Stenberg2005-08-291-32/+190
| | | | | | for Windows, that could lead to an Access Violation when the multi interface was used due to an issue with how the resolver thread was and was not terminated.
* Ensure thread handle is closed too.Gisle Vanem2005-06-141-3/+4
|
* Cory Nelson's work on nuking compiler warnings when building on x64 withDaniel Stenberg2005-04-261-1/+1
| | | | VS2005.
* only define _REENTRANT if not already defined, and only in setup.hDaniel Stenberg2005-04-191-2/+0
|
* hostthre.c: destroy_thread_data() made public. CalledGisle Vanem2005-04-041-7/+8
| | | | from url.c: Curl_disconnect().
* removed a (fairly useless) debug output just to compile without warningDaniel Stenberg2005-03-201-2/+0
|
* FTP code turned into state machine. Not completely yet, but a good start.Daniel Stenberg2005-02-091-9/+9
| | | | | The tag 'before_ftp_statemachine' was set just before this commit in case of future need.