aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.c
AgeCommit message (Collapse)Author
2002-03-15Jun-ichiro itojun Hagino <itojun@itojun.org>:Daniel Stenberg
Now first check if IPv6 is supported, then use PF_UNSPEC. If not, use PF_INET. It'll solve both the "slow name lookup" problem on IPv4 and still work fine on IPv6 hosts. Bug report #530204 has more details: http://sourceforge.net/tracker/?func=detail&atid=100976&aid=530204&group_id=976
2002-03-15bug report #530204 correctly identified that revision 1.52 broke ipv6Daniel Stenberg
functionality and this change reverts this. However, with this revert we bring back problems on (some/all?) non-IPv6 enabled Linux machines that have getaddrinfo().
2002-02-20Nico Baggus' VMS tweaksDaniel Stenberg
2002-02-18Rick Richardson's getaddrinfo() usage fix to speed up name resolvesDaniel Stenberg
2002-02-18INADDR_NONE should be in_addr_t to work with 64bit archs better.Daniel Stenberg
Really, we should only #define this in one file, not both here and in connect.c!
2002-01-31_num_chars did wrong when called with a number that starts with 1!Daniel Stenberg
2002-01-28someone should have me punished, but this bug made curl bug seriouslyDaniel Stenberg
on IPv4-linux machines
2002-01-18prevents gcc -Wcast-align from complainingDaniel Stenberg
2002-01-17include our own sprintf() prototype to make it return sensible data onDaniel Stenberg
all platforms, I also edited a few data types slightly to prevent my compiler from warning on comparisions between signed and unsigned values
2002-01-17Get this working, still need to check for leaks and such, but should beSterling Hughes
fine..
2002-01-17Make the keys for hostcache entries be in the format::Sterling Hughes
host:port, so accessing curl.haxx.se on port 80 would yield a key value of :: curl.haxx.se:80
2002-01-14a memory leak when name lookup failed is now removedDaniel Stenberg
2002-01-08added two typecasts to prevent compiler (gcc3) warningsDaniel Stenberg
2002-01-081) the dns_cache_timeout should be an integer, not a boolSterling Hughes
2) in the curl_dns_cache_entry structure, timestamp should be a time_t instead of an integer (although I doubt it matters).
2002-01-08Add support for DNS cache timeouts via the CURLOPT_DNS_CACHE_TIMEOUT option.Sterling Hughes
The default cache timeout for this is 60 seconds, which is arbitrary and completely subject to change :)
2002-01-07Probably not necessary, but good practice.Sterling Hughes
2002-01-07Make cach'ing work with threads now, there are now three cases:Sterling Hughes
- Use a global dns cache (via setting the tentatively named, CURLOPT_DNS_USE_GLOBAL_CACHE option to true) - Use a per-handle dns cache, by default - Use a pooled dns cache when in the "multi" interface
2002-01-03Sterling Hughes' provided initial DNS cache source code.Daniel Stenberg
2002-01-02Philip Gladstone's 64-bit sparc native compiler compatibility issues fixed.Daniel Stenberg
2001-12-04Eric's #include fixes for better macos compilesDaniel Stenberg
2001-10-23pack_hostent() now aligns the data properly on 64bit boundaries to work onDaniel Stenberg
more CPU architectures
2001-10-17the malloc debug system only logs data if the logfile FILE * is set, whichDaniel Stenberg
makes it easier to disable debug output when built with debug functions
2001-10-11looks nicer and is better compatible with older vim versionsSterling Hughes
2001-10-04made sure the correct pieces of code are compiled on IPv4-only hosts, andDaniel Stenberg
the pack_hostent() is only compiled if gethostbyname_r() isn't present.
2001-10-04getaddrinfo() cleanupsDaniel Stenberg
2001-10-03Keith McGuigan's excellent fix that makes a cloned copy of the hostent structDaniel Stenberg
for when gethostbyname() is used so that we have the memory of the struct allocated. This turns out to be needed if the curl handled is passed between threads on Windows and possibly other operating systems where we use that function.
2001-09-28more ipv6 cleanups to make smaller functions that are easier to readDaniel Stenberg
2001-09-28more transparant support for IPv6 name resolvingDaniel Stenberg
2001-09-12reverted. twas no memory leak and the "fix" didn't even compile on windows...Daniel Stenberg
2001-09-12*TERRIBLE* terrible memory leak occuring on all systems that have noDaniel Stenberg
gethostbyname_r() function, most notably windows machines...
2001-09-07Added formatting sections for emacs and vimSterling Hughes
2001-08-30Major rename and redesign of the internal "backbone" structs. Details willDaniel Stenberg
be posted in a minute to the libcurl list.
2001-08-06Nico Baggus' VMS adjustmentsDaniel Stenberg
2001-05-30finally fixed the 'ret' compiler warningDaniel Stenberg
2001-02-05Jun-ichiro itojun Hagino's IPv6 adjustmentsDaniel Stenberg
2001-01-05Internal symbols that aren't static are now prefixed with 'Curl_'Daniel Stenberg
2001-01-03dual-license fixDaniel Stenberg
2000-11-21GetHost() now sets the third pointer to NULL when the lookup fails, as theDaniel Stenberg
memory is then freed in the function
2000-11-21added comment on a variable that is unused on some platformsDaniel Stenberg
2000-10-09added memory debugging include fileDaniel Stenberg
2000-10-08GetHost() did not properly assign the third argument pointer!Daniel Stenberg
2000-09-29#include <malloc.h> was removed, it causes warnings on openbsdDaniel Stenberg
2000-09-21GetHost() changed function argumentsDaniel Stenberg
2000-09-18GetHost() now should return NULL when it fails, even for Tru64 unixDaniel Stenberg
2000-08-24#include "setup.h" moved first of all includesDaniel Stenberg
2000-08-24hostname and large file support addedDaniel Stenberg
2000-08-23Albert Chin-A-Young's fixesDaniel Stenberg
2000-08-17the gethostbyname_r() usage was improved by Fred NozDaniel Stenberg
2000-08-04Fixed to use the new HAVE_GETHOSTBYxxxx_R_x defines, now trying to supportDaniel Stenberg
the AIX-style as well. The AIX-stuff is *NOT* verified to work.
2000-06-20haxx.nu => haxx.seDaniel Stenberg