summaryrefslogtreecommitdiff
path: root/util.c
Commit message (Collapse)AuthorAgeFilesLines
* auth file, using alternative bcmp implementationDavid Carlier2020-01-131-0/+17
| | | | | | | | | ... instead to check the token. less optimised than the usual memcmp especially it goes through the whole buffers but more resilient against possible attacks. While at it, constifying a var which should have been.
* restartable cachedormando2019-09-171-0/+52
| | | | | | | | | | | | | | | "-e /path/to/tmpfsmnt/file" SIGUSR1 for graceful stop restart requires the same memory limit, slab sizes, and some other infrequently changed details. Most other options and features can change between restarts. Binary can be upgraded between restarts. Restart does some fixup work on start for every item in cache. Can take over a minute with more than a few hundred million items in cache. Keep in mind when a cache is down it may be missing invalidations, updates, and so on.
* Use correct buffer size for internal URI encoding.Tharanga Gamaethige2019-05-201-1/+1
| | | | | Modified Logger and Crawler to use the correct buffer length when they are printing URI encoded keys. Fixes #471
* Print with more-restricted format string to fix compiler warningJoe Orton2017-02-261-1/+1
| | | | with gcc 7's -Wformat-truncation.
* "lru tune" command for setting LRU parametersdormando2017-01-301-0/+17
|
* prototype functionality for LRU metadumperdormando2016-08-191-0/+35
| | | | | Functionality is nearly all there. A handful of FIXME's and TODO's to address. From there it needs to be refactored into something proper.
* Issue 221: Increment treats leading spaces as 0Trond Norbye2011-09-031-4/+10
|
* Fix compilation issue on Solaris 9 wrt isspace() macro - Resolves issue 111Paul Lindner2010-09-141-4/+7
|
* Fix potential buffer overflow in vperrorTrond Norbye2010-02-221-2/+4
|
* Issue: #83: Refactor: use htonll or ntohll if the os provides themTrond Norbye2009-09-021-0/+28
|
* vperror implementationDustin Sallings2009-08-191-1/+16
| | | | | This allows us to provide much more useful error messages for syscalls.
* Added safe_strtou?l functions.Dustin Sallings2009-03-191-0/+44
| | | | | Some of the tests for this were written but commented out because they fail on some platforms.
* safe_strou?ll functions should operate on u?int64_t types.Dustin Sallings2009-03-191-2/+2
| | | | | long long and unsigned long long are interchangeable in most places, but apparently not my 64-bit ubuntu 8.10 box.
* Reformatted util.cDustin Sallings2009-03-191-28/+29
|
* C-style multiline commentBrad Fitzpatrick2009-03-191-2/+2
|
* flesh out safe_strto* util funcs, and make incrdecr use themBrad Fitzpatrick2009-03-191-1/+30
|
* start of the incr fix, rearranges a bunch, adds util, tests, etcBrad Fitzpatrick2009-03-191-0/+16