Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix some more O_CLOEXEC/SOCK_CLOEXEC issues | Rich Felker | 2012-09-29 | 1 | -3/+1 |
| | |||||
* | improve name lookup performance in corner cases | Rich Felker | 2012-04-01 | 1 | -1/+1 |
| | | | | | | | | | | | the buffer in getaddrinfo really only matters when /etc/hosts is huge, but in that case, the huge number of syscalls resulting from a tiny buffer would seriously impact the performance of every name lookup. the buffer in __dns.c has also been enlarged a bit so that typical resolv.conf files will fit fully in the buffer. there's no need to make it so large as to dominate the syscall overhead for large files, because resolv.conf should never be large. | ||||
* | fix for previous incorrect fix of cancellation in dns lookups | Rich Felker | 2012-02-23 | 1 | -3/+4 |
| | | | | | uninitialized file descriptor was being closed on return, causing stdin to be closed in many cases. | ||||
* | fix default nameserver when resolv.conf doesn't exist | Rich Felker | 2012-02-11 | 1 | -1/+2 |
| | |||||
* | fix illegal goto out of cleanup context in dns lookups | Rich Felker | 2012-02-11 | 1 | -3/+3 |
| | |||||
* | make dns lookups (and thus getaddrinfo) cancellable | Rich Felker | 2011-09-21 | 1 | -4/+11 |
| | |||||
* | use poll rather than select in dns lookups (also clock_gettime) | Rich Felker | 2011-09-21 | 1 | -12/+10 |
| | | | | | | | | | | if the file descriptor resource limit has been increased past FD_SETSIZE, this is actually a security issue; we could write past the end of the fd_set object. using poll makes it a non-issue, and simplifies the code at the same time. also, use clock_gettime instead of gettimeofday, for reduced bloat and better entropy. | ||||
* | dns lookups: protect against cancellation and fix incorrect error codes | Rich Felker | 2011-04-18 | 1 | -4/+10 |
| | |||||
* | fix broken dns response parsing code that made most ipv6 lookups fail | Rich Felker | 2011-04-08 | 1 | -4/+6 |
| | |||||
* | fix uninitialized variables in dns lookup code | Rich Felker | 2011-04-07 | 1 | -2/+2 |
| | |||||
* | another pointer signedness fix | Rich Felker | 2011-02-14 | 1 | -1/+1 |
| | |||||
* | initial check-in, version 0.5.0 v0.5.0 | Rich Felker | 2011-02-12 | 1 | -0/+267 |