summaryrefslogtreecommitdiff
path: root/lib/hash.c
Commit message (Collapse)AuthorAgeFilesLines
...
* attempt to fix or allow further detection of an elusive icc SIGSEGVYang Tse2008-10-191-0/+4
|
* remove unnecessary typecasting of malloc()Yang Tse2008-09-061-4/+3
|
* if () => if()Daniel Stenberg2007-11-071-13/+13
| | | | | while () => while() and some other minor re-indentings
* Renamed a few variables to avoid shadowing global declarations.Dan Fandrich2007-09-271-4/+4
|
* Added lots of constsDan Fandrich2007-08-291-3/+3
|
* Robert Iakobashvili re-arranged the internal hash code to work with a customDaniel Stenberg2007-06-261-40/+59
| | | | | | hash function for different hashes, and also expanded the default size for the socket hash table used in multi handles to greatly enhance speed when very many connections are added and the socket API is used.
* Added a useful debug function within #if 0. The function makes it easy toDaniel Stenberg2006-09-101-1/+32
| | | | | "dump" a hash table which is useful when tracking problems with data stored in one of our hashes.
* First curl_multi_socket() commit. Should primarily be considered as an internalDaniel Stenberg2006-04-101-4/+22
| | | | code rearrange to fit the future better.
* Use plain structs and not typedef'ed ones in the hash and linked-list code.Daniel Stenberg2005-01-251-30/+29
|
* Source cleanups. The major one being that we now _always_ use a Curl_addrinfoDaniel Stenberg2004-06-241-42/+11
| | | | | linked list for name resolved data, even on hosts/systems with only IPv4 stacks as this simplifies a lot of code.
* curl_global_init_mem() allows the memory functions to be replaced.Daniel Stenberg2004-05-111-3/+1
| | | | memory.h is included everywhere for this.
* Curl_hash_add() was modified to clear up better in case of internal failure.Daniel Stenberg2004-05-101-2/+8
| | | | | When failing, it should not tamper at all with the data it was supposed to add to the cache.
* better checking that strdup() worksDaniel Stenberg2004-05-101-3/+11
|
* improved the cleaning up of memory when we fail to resolve names due toDaniel Stenberg2004-05-041-1/+1
| | | | out of memory (thanks to 'runtests.pl -t')
* updated year in the copyright stringDaniel Stenberg2004-01-071-1/+1
|
* make sure that hash_add() has no allocated resources left in case itDaniel Stenberg2003-12-151-7/+8
| | | | returns NULL
* Jeff Pohlmeyer did some marvelous debugging to track this one down. We MUSTDaniel Stenberg2003-09-141-11/+10
| | | | | | 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.
* Uses less macros. #ifdef'ed out unused functions. Edited slightly to beDaniel Stenberg2003-09-051-49/+61
| | | | | more in the same style as other curl source code. The only actual code change is an added check after a malloc() call.
* 1. check allocsDaniel Stenberg2003-08-141-9/+24
| | | | 2. don't leave allocated memory behind when returning error
* use CURLDEBUG instead of MALLOCDEBUG for preprocessor conditionsDaniel Stenberg2003-06-261-1/+1
|
* removed weirdo {{{ and }}} commentsDaniel Stenberg2003-01-291-53/+4
| | | | removed emacs local-variables stuff
* copyright year update in the source headerDaniel Stenberg2003-01-161-1/+1
|
* Curl_resolv() now returns a different struct, and it contains a referenceDaniel Stenberg2002-11-051-9/+9
| | | | | | | | counter so that the caller needs to decrease that counter when done with the returned data. If compiled with MALLOCDEBUG I've added some extra checking that the counter is decreased before a handle is closed etc.
* updated source code boilerplate/headerDaniel Stenberg2002-09-031-7/+7
|
* DNC cache prune crash removed, made the name spacing follow the generalDaniel Stenberg2002-04-271-23/+31
| | | | | rule: "Curl_" prefix for library-wide private symbols, "curl_" is for exported symbols.
* Prune old hostcache entries with each call...Sterling Hughes2002-04-171-0/+20
| | | | This can be optimized a tidbit, but this is a start.
* Add protos and change return value of curl_hash_count....Sterling Hughes2002-04-131-1/+19
|
* Speed up the hash code considerably, removing a bunch of legacy crudSterling Hughes2002-04-121-121/+98
|
* copyright string (year) updateDaniel Stenberg2002-03-191-1/+1
|
* Philip Gladstone's 64-bit issues corrected.Daniel Stenberg2002-02-171-2/+2
| | | | | | | Reminder for the future: when we're using malloc() we MUST include <stdlib.h> as otherwise 64bit archs go bananas. Bug report #517687
* I wish I could type. Anyway, this proved it is a good habit to put the NULLDaniel Stenberg2002-01-181-1/+1
| | | | on the left side of comparisons...
* added typecast for a malloc() return, and added check for NULLDaniel Stenberg2002-01-181-1/+4
|
* Make cach'ing work with threads now, there are now three cases:Sterling Hughes2002-01-071-0/+11
| | | | | | | - 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
* Sterling Hughes' provided initial DNS cache source code.Daniel Stenberg2002-01-031-0/+271