aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.c
AgeCommit message (Collapse)Author
2004-04-01removed my previously attempted fix for ares timeouts, not neededDaniel Stenberg
2004-03-31Roy Shan fixed a case that prevented ares name resolve timeouts to occur.Daniel Stenberg
2004-03-31Remove the elapsed time from the most recent select() only.Daniel Stenberg
2004-03-31The asynch name resolve methods now all use CURL_TIMEOUT_RESOLVE forDaniel Stenberg
the specific time to wait for a resolve. The definition is at the top of this source file.
2004-03-31Dirk Manske found out the Curl_wait_for_resolv() timed out too early.Daniel Stenberg
2004-03-30Lots of comments added an clarified. Added timeout for the ares versionDaniel Stenberg
of Curl_is_resolved() to address Roy Shan's reported problem.
2004-03-29The select() timeout is better not static since some implementation actuallyDaniel Stenberg
might change it. I don't *think* it does it when the timeout is 0,0 but it is better to be sure...
2004-03-17Günter Knauf's NetWare changes.Daniel Stenberg
2004-03-10store times in time_tDaniel Stenberg
2004-03-09only build with the windows threading trace code ifDaniel Stenberg
DEBUG_THREADING_GETHOSTBYNAME is defined
2004-03-03tv_sec is an int, so we explicitly typecast the result of long - long toDaniel Stenberg
an int when we assign it.
2004-02-23use size_t to keep strlen() resultsDaniel Stenberg
2004-02-23simplied how create_hostcache_id() is used, and also its function somewhatDaniel Stenberg
cleared up some ssize_t/size_t mixups
2004-02-20Gisle Vanem brings name resolving timeout possibilities to windows people.Daniel Stenberg
This works by magicly starting up a new thread that can be killed when the timeout is reached. testtesttest!
2004-02-18No longer uses the 'ret' variable in the plain ipv4-version ofDaniel Stenberg
my_getaddrinfo() (caused a warning by the IRIX MIPSPro compiler). Also clarified the situation for the 3-arg version of gethostbyname_r() with a huge comment.
2004-02-18Make sure dns cache timeout -1 really means forever, as it is documented toDaniel Stenberg
be. Simply skip the pruning.
2004-02-16Make the 'areschannel' get created in the curl_easy_init() and re-use thatDaniel Stenberg
same channel during the whole curl handle's life until curl_easy_cleanup().
2004-02-15Mark the dns entry 'inuse' properly even when used from the cache. ThisDaniel Stenberg
seems to correct some host cache screw-ups I could reproduce.
2004-02-12Make hostcache_fixoffset() take a long for offset, to fully work with 64bitDaniel Stenberg
archs, also no longer typecast pointers to ints as that is a nono on 64bit systems.
2004-02-05hide the pack_hostent proto if ipv6 is enabled, as figured out by Tor ArntsenDaniel Stenberg
2004-02-02adjusted to the modified ares_strerror() functionDaniel Stenberg
NOTE that this breaks ares-compatibility, we have now officially taken the turn into the c-ares path. We will now officially depend on c-ares for asynch name resolves.
2004-02-02Dirk Manske fixed the ares usage even more. We could get a timeout from aresDaniel Stenberg
as well, and when failing and not getting a timeout we now include the error message ares can provide us with.
2004-02-02Timeout slow ares name lookups. This is based on the patch brought byDaniel Stenberg
Dirk Manske, but modified by me.
2004-01-14fixed the Curl_resolv()'s return code when the looked up host was alreadyDaniel Stenberg
in the cache (Vincent Bronner)
2004-01-07updated year in the copyright stringDaniel Stenberg
2003-12-15added a library-wide interface for doing dns cache pruning, and no longerDaniel Stenberg
make the pruning at each name lookup, only in Curl_done().
2003-12-15if Curl_hash_add() returns NULL, we shall not free the addrinfo field as thatDaniel Stenberg
is made in the hash function in the case of failure (using the already setup 'dtor' function).
2003-12-03Steve Green fixed Curl_resolv()Daniel Stenberg
2003-11-15do ares_destroy() on the ares handle when we're done in Curl_is_resolved()Daniel Stenberg
2003-11-14Siddhartha Prakash Jain found a case with a bad resolve that we didn'tDaniel Stenberg
properly bail out from, when using ares.
2003-10-28Another glibc resolve name fixDaniel Stenberg
2003-10-24better bailing-out cleanup if a malloc fails in the DNS cacheDaniel Stenberg
2003-10-20lock the DNS cache properly before adding an entry when using asynch DNSDaniel Stenberg
2003-10-14Gisle Vanem's IPv6-on-Windows patch applied!Daniel Stenberg
2003-10-12Dirk Manske made the share-locking around DNS lookups a bit "looser" so thatDaniel Stenberg
multiple DNS lookups can run simultaneously faster. The downside is that resolving the same host name now can be made at once from multiple threads, but the upside is that threads now don't alwys have to wait for the others' resolves. Test case 506 updated accordingly.
2003-10-05just re-indented some codeDaniel Stenberg
2003-10-04Based on a patch provided by Siddhartha Prakash Jain. In Curl_resolv() whenDaniel Stenberg
my_getaddrinfo() has been called (and wait has been set to TRUE), we check if the name already is resolved and if so don't return wait status to the parent. This can happen with IP-only names.
2003-09-19Added CURLOPT_IPRESOLVE supportDaniel Stenberg
2003-09-14Jeff Pohlmeyer did some marvelous debugging to track this one down. We MUSTDaniel Stenberg
NOT free the existing hash entry when we try to add a new one that matches an existing entry. We now instead free the new one, and make the parent function use the old entry's struct instead.
2003-09-11Curl_is_resolved(): FD_ZERO the file descriptors before we call ares_fds().Daniel Stenberg
Problem tracked down by Bjorn Reese.
2003-09-01The error buffer was not getting filled when Curl_wait_for_resolv() fails.Daniel Stenberg
Jeff Pohlmeyer fixed.
2003-08-22use proper type to prevent compiler warningDaniel Stenberg
2003-08-21Vincent Sanders provided a fix for name resolving when linked with uClibc.Daniel Stenberg
2003-08-19make sure the 'done' variable is always set to something in theDaniel Stenberg
Curl_is_resolved() function
2003-08-19don't set done==TRUE if the host name doesn't resolveDaniel Stenberg
2003-08-06make it build without ares supportDaniel Stenberg
make sure it set async false even when using ipv6 (made test case 20 fail before)
2003-08-05ares awareness/usage/support added. If configure --enable-ares is used, weDaniel Stenberg
build libcurl to use ares for asynch name resolves.
2003-07-23minor code style fixDaniel Stenberg
2003-06-26use CURLDEBUG instead of MALLOCDEBUG for preprocessor conditionsDaniel Stenberg
2003-05-20Gisle Vanem's code for not trusting h_aliases to always be non-NULLDaniel Stenberg