Sterling Hughes
7d06185aa6
Make the keys for hostcache entries be in the format::
...
host:port, so accessing curl.haxx.se on port 80 would yield a key value
of ::
curl.haxx.se:80
2002-01-17 06:55:37 +00:00
Daniel Stenberg
fefc7ea600
a memory leak when name lookup failed is now removed
2002-01-14 23:14:24 +00:00
Daniel Stenberg
75bba0da92
added two typecasts to prevent compiler (gcc3) warnings
2002-01-08 07:06:07 +00:00
Sterling Hughes
c0bfe7be15
1) the dns_cache_timeout should be an integer, not a bool
...
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-08 04:30:59 +00:00
Sterling Hughes
22ac08e06d
Add support for DNS cache timeouts via the CURLOPT_DNS_CACHE_TIMEOUT option.
...
The default cache timeout for this is 60 seconds, which is arbitrary and
completely subject to change :)
2002-01-08 04:26:47 +00:00
Sterling Hughes
bd878756fc
Probably not necessary, but good practice.
2002-01-07 20:55:35 +00:00
Sterling Hughes
8d7f402efb
Make cach'ing work with threads now, there are now three cases:
...
- 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-07 20:52:32 +00:00
Daniel Stenberg
6de7dc5879
Sterling Hughes' provided initial DNS cache source code.
2002-01-03 10:22:59 +00:00
Daniel Stenberg
fe37fb5921
Philip Gladstone's 64-bit sparc native compiler compatibility issues fixed.
2002-01-02 10:06:47 +00:00
Daniel Stenberg
436d147925
Eric's #include fixes for better macos compiles
2001-12-04 13:03:08 +00:00
Daniel Stenberg
4e276b1b68
pack_hostent() now aligns the data properly on 64bit boundaries to work on
...
more CPU architectures
2001-10-23 12:11:43 +00:00
Daniel Stenberg
010044e03c
the malloc debug system only logs data if the logfile FILE * is set, which
...
makes it easier to disable debug output when built with debug functions
2001-10-17 12:33:35 +00:00
Sterling Hughes
8e91d5de8e
looks nicer and is better compatible with older vim versions
2001-10-11 09:32:19 +00:00
Daniel Stenberg
47def8091c
made sure the correct pieces of code are compiled on IPv4-only hosts, and
...
the pack_hostent() is only compiled if gethostbyname_r() isn't present.
2001-10-04 13:36:11 +00:00
Daniel Stenberg
5d9ae88f58
getaddrinfo() cleanups
2001-10-04 13:25:12 +00:00
Daniel Stenberg
9d066935e5
Keith McGuigan's excellent fix that makes a cloned copy of the hostent struct
...
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-10-03 21:42:04 +00:00
Daniel Stenberg
4d13b2cc64
more ipv6 cleanups to make smaller functions that are easier to read
2001-09-28 07:46:39 +00:00
Daniel Stenberg
48dc74aecc
more transparant support for IPv6 name resolving
2001-09-28 07:05:26 +00:00
Daniel Stenberg
36e9507e29
reverted. twas no memory leak and the "fix" didn't even compile on windows...
2001-09-12 08:59:00 +00:00
Daniel Stenberg
8950a2dfa1
*TERRIBLE* terrible memory leak occuring on all systems that have no
...
gethostbyname_r() function, most notably windows machines...
2001-09-12 07:19:11 +00:00
Sterling Hughes
6147879837
Added formatting sections for emacs and vim
2001-09-07 04:01:32 +00:00
Daniel Stenberg
0ece1b5c34
Major rename and redesign of the internal "backbone" structs. Details will
...
be posted in a minute to the libcurl list.
2001-08-30 22:48:34 +00:00
Daniel Stenberg
93bcfd4e65
Nico Baggus' VMS adjustments
2001-08-06 12:19:26 +00:00
Daniel Stenberg
d9f39cc99b
finally fixed the 'ret' compiler warning
2001-05-30 11:06:33 +00:00
Daniel Stenberg
f6e2bfd464
Jun-ichiro itojun Hagino's IPv6 adjustments
2001-02-05 23:04:44 +00:00
Daniel Stenberg
4031104404
Internal symbols that aren't static are now prefixed with 'Curl_'
2001-01-05 10:11:41 +00:00
Daniel Stenberg
24dee483e9
dual-license fix
2001-01-03 09:29:33 +00:00
Daniel Stenberg
c06f726614
GetHost() now sets the third pointer to NULL when the lookup fails, as the
...
memory is then freed in the function
2000-11-21 15:35:45 +00:00
Daniel Stenberg
336b0b7d82
added comment on a variable that is unused on some platforms
2000-11-21 09:29:21 +00:00
Daniel Stenberg
0f8facb49b
added memory debugging include file
2000-10-09 11:12:34 +00:00
Daniel Stenberg
1e2e6a4e33
GetHost() did not properly assign the third argument pointer!
2000-10-08 12:50:51 +00:00
Daniel Stenberg
e372a440c0
#include <malloc.h> was removed, it causes warnings on openbsd
2000-09-29 06:34:50 +00:00
Daniel Stenberg
aa8a2fbde3
GetHost() changed function arguments
2000-09-21 08:47:48 +00:00
Daniel Stenberg
398e3f423f
GetHost() now should return NULL when it fails, even for Tru64 unix
2000-09-18 21:16:27 +00:00
Daniel Stenberg
b6e18f2f66
#include "setup.h" moved first of all includes
2000-08-24 14:26:33 +00:00
Daniel Stenberg
1b1f143cd6
hostname and large file support added
2000-08-24 12:33:16 +00:00
Daniel Stenberg
d4731b7050
Albert Chin-A-Young's fixes
2000-08-23 07:23:42 +00:00
Daniel Stenberg
a8f99e7924
the gethostbyname_r() usage was improved by Fred Noz
2000-08-17 21:07:22 +00:00
Daniel Stenberg
02f994a715
Fixed to use the new HAVE_GETHOSTBYxxxx_R_x defines, now trying to support
...
the AIX-style as well. The AIX-stuff is *NOT* verified to work.
2000-08-04 11:27:17 +00:00
Daniel Stenberg
1ef3600a07
haxx.nu => haxx.se
2000-06-20 15:31:26 +00:00
Daniel Stenberg
980ee98ec9
David LeBlanc corrected one of my mistakes
2000-05-31 06:31:31 +00:00
Daniel Stenberg
8d76ad6c8e
Adjusted to the GETHOSTBYADDR_R_NARGS style
2000-05-30 22:27:39 +00:00
Daniel Stenberg
a0ce95e155
David LeBlanc's fixes!
2000-05-29 22:51:13 +00:00
Daniel Stenberg
ae1912cb0d
Initial revision
1999-12-29 14:20:26 +00:00