882 Commits (2389a150acfc3915ec6684231fefca4e2323e93d)
 

Author SHA1 Message Date
leitner 6e022f98c9 ... but if errno==EINVAL still fall back to socket+fcntl (Robert Henney) 10 years ago
leitner 35f5a9692a if SOCK_NONBLOCK is defined, use it instead of socket+fcntl 10 years ago
leitner a255cebc57 mmap_read/mmap_shared on zero length files no longer fail but return a
zero length buffer
10 years ago
leitner ed93e203a1 more constness for stralloc and buffer 10 years ago
leitner 38ea25fd9f more updates 10 years ago
leitner 3d9452738b better Makefile 10 years ago
leitner f07562d857 add haveuint128.h as dependency to make dep 10 years ago
leitner ba56a8c350 add havealloca as dependency to dep 10 years ago
leitner c60c2425ce hopefully fix the infinite loop in gatling 10 years ago
leitner 193dfba16b remove compiler warning 10 years ago
leitner 4fa4a524d2 add io_fd_flags so the caller can tell io_fd whether the socket is blocking
(saves one fcntl syscall)
10 years ago
leitner 7dadd4e7c3 get rid of io_starteventloop 10 years ago
leitner c785fff258 update Makefile 10 years ago
leitner 3885650d81 on Linux, in iob_send, if MSG_MORE is defined, and the request type
lends itself to it, used sendto/sendmsg with MSG_MORE instead of
    TCP_CORK (saves two syscalls)
10 years ago
leitner 953eb639b2 on Linux, save a few syscalls by using sendto/sendmsg with MSG_MORE
instead of write/writev + setsockopt TCP_CORK
10 years ago
leitner a691887e75 forgot to check in the actual code m( 10 years ago
leitner 88167b5ce1 add socket_fastopen, socket_fastopen_connect4, socket_fastopen_connect6 and socket_quickack 10 years ago
leitner 8bdf66a1f5 add scan_html_tagarg 10 years ago
leitner 1d723c8da4 scan_html forgot to output '<' when it did not know the tag coming in 10 years ago
leitner 0aa50a19a4 add fmt_html_tagarg, fmt_xml 10 years ago
leitner 7c5d119f9a fix buffer_get 10 years ago
leitner 4404ab35f3 revert to level triggering for epoll (forgot io_wantread) 10 years ago
leitner f278f9c049 also install compiletimeassert.h 10 years ago
leitner 595a01fb1b fix copy/paste error 10 years ago
leitner dc4d204f4e also mention scan_ip6if(3) 10 years ago
leitner 967e3ce019 revert edge triggering epoll; it had reliability and fairness issues and
was also not actually faster
10 years ago
leitner 8b3eb0be7c documented wrong return type 10 years ago
leitner 798c06a785 add more comments 11 years ago
leitner 25d9c5a6c7 add helpful #define HAVE_EAGAIN_READWRITE 11 years ago
leitner 39e7ee90bb introduce io_eagain_read and io_eagain_write (discontinue using io_eagain plz) 11 years ago
leitner d9cbb3940c it turns out you don't need -1/EGAIN to know edge triggering told you
there is no more data, it's enough to read/write less than you asked for
11 years ago
leitner f3c0e69988 fix and document iarray 11 years ago
leitner 5baf943f0a finish epoll move to edge triggering 11 years ago
leitner 0f6e586fc9 fix some bugs that cppcheck found 11 years ago
leitner 6d18d4ecc3 better comment 11 years ago
leitner 4ecc33dcea catch not enough bytes in input buffer case 11 years ago
leitner 8106f8c5a6 remove superfluous &0x7f 11 years ago
leitner 8581b74a84 on FreeBSD, on a PF_INET6 socket, recvfrom and friends can actually
return a sockaddr with family PF_INET.  WTF?  Work around that.
11 years ago
leitner 63b08692d0 check value to large error for asn1derlength 11 years ago
leitner cf1406735c much shorter way to do the same thing 11 years ago
leitner 708c358a74 for asn1derlength: save a few bytes
for asn1dertag: catch too-large-value overflow
11 years ago
leitner 24d1ccb1b7 reject non-minimally encoded ASN.1 DER data
split scan_asn1derlength into scan_asn1derlength and scan_asn1derlengthvalue
11 years ago
leitner f4414a2e80 remove io_starteventloop 11 years ago
leitner b6af872d43 update Makefile 11 years ago
leitner 321b30565d change return type to void 11 years ago
leitner 90acf965e7 add iarray_length 11 years ago
leitner a544abc39c switch io_fds from array to newly implemented (hopefully thread-safe) iarray
switch epoll from level triggering to edge triggering
11 years ago
leitner dd436c5bf8 map mmap_read return a const char* 11 years ago
leitner c548cce5a1 another attempt at a thread-safe array 11 years ago
leitner c608502cd8 add scan_ulongn, scan_8longn, scan_xlongn, scan_longn, scan_netstring 11 years ago