Commit Graph

173 Commits (ec32c40babad90fb3268bcc0307269f74025615b)

Author SHA1 Message Date
Felix von Leitner ea849e7ebf a few missing headers and minor fixes 7 years ago
Felix von Leitner 247b2175c4 remove dead store 8 years ago
Felix von Leitner 8640df0e04 hopefully fix the infinite loop in gatling 8 years ago
Felix von Leitner a606013ffd remove compiler warning 8 years ago
Felix von Leitner 1c9d7b0b30 add io_fd_flags so the caller can tell io_fd whether the socket is blocking 8 years ago
Felix von Leitner 62ec3d9b67 on Linux, save a few syscalls by using sendto/sendmsg with MSG_MORE 8 years ago
Felix von Leitner aedf1016c1 revert to level triggering for epoll (forgot io_wantread) 8 years ago
Felix von Leitner 1de8f45d8a revert edge triggering epoll; it had reliability and fairness issues and 8 years ago
Felix von Leitner d8da202a8b introduce io_eagain_read and io_eagain_write (discontinue using io_eagain plz) 9 years ago
Felix von Leitner 03df1685ba it turns out you don't need -1/EGAIN to know edge triggering told you 9 years ago
Felix von Leitner 44bcab1661 finish epoll move to edge triggering 9 years ago
Felix von Leitner 68f5b64189 switch io_fds from array to newly implemented (hopefully thread-safe) iarray 9 years ago
Felix von Leitner 212f499313 hopefully this fixes the looping gatling processes 9 years ago
Felix von Leitner 3743706899 add io_fd_canwrite (like io_fd but assume the fd is writable) 11 years ago
Felix von Leitner bc5fa9c946 fix endless loop bug on freebsd 11 years ago
Felix von Leitner f3bbb827d2 document the return value expected from the callback given to iob_write 11 years ago
Felix von Leitner 3506fbf4de accept -3 as error return from the callback, too 11 years ago
Felix von Leitner cab6090eb7 the iob calls return int, not void 11 years ago
Felix von Leitner 0305cf80fb only try to receive one byte to avoid discarding data 12 years ago
Felix von Leitner a96b23073c get rid of warning 13 years ago
Felix von Leitner dfced9889c add/fix man pages 13 years ago
Felix von Leitner ee8fd72f43 hups 14 years ago
Felix von Leitner a22dbda5f7 the #define extern hack in io_fd.c also included time.h, fix that 14 years ago
Felix von Leitner 5075183086 remove four warnings 14 years ago
Felix von Leitner 6d98b442ab some valgrind de-noising 15 years ago
Felix von Leitner 68291b6bb1 munmap cleanup fix (Erdgeist) 15 years ago
Felix von Leitner 92b23094e1 use callback based infrastructure to reset iob's 15 years ago
Felix von Leitner 17d867ddb6 add iob_addbuf_munmap 15 years ago
Felix von Leitner 79b9ad4ac0 off-by-one 16 years ago
Felix von Leitner f064289d07 fix really pathological case where io_timeouted would never 16 years ago
Felix von Leitner ad2599ef2b make io_timeout clearer 16 years ago
Felix von Leitner 51609b5628 add iob_bytesleft 16 years ago
Felix von Leitner 56fb0a586d fix for NetBSD 3.0 (they broke their sys/types.h) 17 years ago
Felix von Leitner 071df9ee4a make socket_(tc|ud)p[46] actually return non-blocking sockets as 17 years ago
Felix von Leitner 3c80bd9309 add io_block 17 years ago
Felix von Leitner b26cb901c3 remove printf 17 years ago
Felix von Leitner 2e87886163 further Windoze support (test/io5.c works, gatling still doesn't) 17 years ago
Felix von Leitner a8fb810465 io_close resets the cookie 17 years ago
Felix von Leitner 4653054e12 add -D_REENTRANT to CFLAGS so libowfat can be used in multi-threaded 17 years ago
Felix von Leitner 2b3a136342 no debug 18 years ago
Felix von Leitner e01f09c988 don't shrink in array_allocate 18 years ago
Felix von Leitner 39747473ba add some debug stuff 18 years ago
Felix von Leitner e868cb15bb Uh, it's #warning and not #warn. *blush* 18 years ago
Felix von Leitner b83c6cbcbc Work around OpenBSD. Again. 18 years ago
Felix von Leitner 341c3fed85 work around broken Solaris sys/socket.h 18 years ago
Felix von Leitner 8b2036b21e IRIX compatibility (yuck!) 18 years ago
Felix von Leitner f4cfcbe6c6 remove gcc4-only warning option 18 years ago
Felix von Leitner 8b636109ab gcc 4 cleanups (mostly unsigned char* vs char*) 18 years ago
Felix von Leitner 43ba9a595c silence two gcc warnings 18 years ago
Felix von Leitner d696df703f fix descriptor leak in iob_addfile_close if the range was 0 (oops) 18 years ago