146 Commits

Author SHA1 Message Date
leitner
8b17690318 use callback based infrastructure to reset iob's 2007-10-17 13:25:44 +00:00
leitner
527efc70b6 add iob_addbuf_munmap 2007-10-17 13:06:56 +00:00
leitner
1b88982d19 off-by-one 2007-01-26 14:16:14 +00:00
leitner
7b52bfc982 fix really pathological case where io_timeouted would never
start over from the beginning because always new accept()ed
    connections came in and got newer, higher descriptors since the last
    io_timeouted loop.  (Dirk Engling)
2007-01-24 18:28:39 +00:00
leitner
8eab2b5aaf make io_timeout clearer 2007-01-10 14:14:30 +00:00
leitner
f046d1cdc1 add iob_bytesleft
don't leak memory in test/httpd.c
2006-12-19 13:19:32 +00:00
leitner
83c1186870 fix for NetBSD 3.0 (they broke their sys/types.h)
remove support for ip6.int reverse lookup in DNS routines (the domain is
no longer delegated)
2006-06-23 03:53:16 +00:00
leitner
d361d81c64 make socket_(tc|ud)p[46] actually return non-blocking sockets as
documented (Richard Lyons)
2006-05-18 06:02:43 +00:00
leitner
d468ea9eb7 add io_block 2006-04-17 05:07:43 +00:00
leitner
c16d9880dc remove printf 2005-10-12 15:21:27 +00:00
leitner
c1c50c7dbd further Windoze support (test/io5.c works, gatling still doesn't)
This is just to get gatling to work, I may remove it again after
    that.
2005-09-09 22:12:23 +00:00
leitner
f65398ff2e io_close resets the cookie 2005-09-02 21:52:22 +00:00
leitner
9512cee614 add -D_REENTRANT to CFLAGS so libowfat can be used in multi-threaded
programs
2005-09-02 21:11:58 +00:00
leitner
b1e8f341ba no debug 2005-08-24 17:32:20 +00:00
leitner
12caccfd48 don't shrink in array_allocate 2005-08-24 17:30:40 +00:00
leitner
e1e80badf0 add some debug stuff 2005-08-24 17:13:35 +00:00
leitner
46dcfbdce1 Uh, it's #warning and not #warn. *blush* 2005-07-01 19:32:04 +00:00
leitner
289ca04238 Work around OpenBSD. Again. 2005-07-01 19:30:01 +00:00
leitner
f0e9a2afc9 work around broken Solaris sys/socket.h 2005-05-20 14:42:42 +00:00
leitner
c169ae9b4a IRIX compatibility (yuck!) 2005-05-20 14:14:15 +00:00
leitner
9405f1271b remove gcc4-only warning option 2005-05-03 12:14:29 +00:00
leitner
c874604f12 gcc 4 cleanups (mostly unsigned char* vs char*) 2005-04-23 15:50:16 +00:00
leitner
7cd919d333 silence two gcc warnings 2005-04-01 21:07:10 +00:00
leitner
11da04b651 fix descriptor leak in iob_addfile_close if the range was 0 (oops) 2005-03-11 18:34:34 +00:00
leitner
1205a3d38f byte_zero the allocated io_batch in iob_new 2005-03-08 20:12:59 +00:00
leitner
882885fdff remove cruft 2005-03-08 15:06:35 +00:00
leitner
9eb09b5bfe add iob_free and man page for iob_reset.
check in some windoze compat crap (still does not compile through for
windoze)
2005-03-08 14:56:36 +00:00
leitner
e73c3e85f1 document error case 2005-03-08 13:54:36 +00:00
leitner
bbf4c614bf fix iob_write to handle failure properly
document that the iob_write callback should limit itself
2005-02-22 21:41:57 +00:00
leitner
f4c8a0c7c2 fix openbsd problem? 2005-02-04 19:04:12 +00:00
leitner
fd4344f3c0 how could this ever have worked? 2005-01-23 02:45:42 +00:00
leitner
89c12ba545 typo, found by Tino Reichardt 2005-01-07 16:15:16 +00:00
leitner
b617d63d1e update dependencies
add errmsg_info and msg
2004-12-25 16:44:07 +00:00
leitner
bffb1dab90 mention prototype of io_write_callback 2004-11-26 19:48:49 +00:00
leitner
86cfc33dab add iob_write (send io batch through callback, e.g. for SSL) 2004-11-25 23:01:44 +00:00
leitner
b48ce77792 add iob_write (to write an io batch through a callback) 2004-11-25 22:55:46 +00:00
leitner
e95599085a use madvise MADV_PREFETCH to implement iob_prefetch 2004-09-27 19:46:42 +00:00
leitner
f4108178f2 fix case where iob_send sends all from io batch, but then new data is
added and iob_send is called again
2004-07-21 16:35:31 +00:00
leitner
523f6f4765 cosmetics: use write instead of writev if there is only one buffer to
write (looks nicer in strace)
2004-07-21 16:00:47 +00:00
leitner
72382af11a Solaris compatibility for io_passfd and io_receivefd (untested, but at
least it compiles)
2004-06-03 16:45:30 +00:00
leitner
1e871b1c32 actually return 0 on success in io_passfd 2004-05-13 12:40:09 +00:00
leitner
696c5f872c add io_readwritefile, io_appendfile 2004-05-10 20:08:38 +00:00
leitner
11f0616cf3 work around broken Linux sendfile API (offset 64-bit but count 32-bit) 2004-05-08 12:52:22 +00:00
leitner
768a46e304 argh more bsd 2004-05-05 20:03:15 +00:00
leitner
a23757a317 bsd compat 2004-05-05 20:01:40 +00:00
leitner
f26451c086 slight optimization for sending 0 bytes from a file
(also fixes a FreeBSD-current sendfile breakage)
2004-04-07 08:38:41 +00:00
leitner
5e2141e9f6 fix bug in mmap code path of io_sendfile (David Leadbeater) 2004-03-24 14:02:00 +00:00
leitner
d8ce4dc2e5 fix signal race (Scott Lamb) 2004-03-07 21:48:56 +00:00
leitner
076a8f4628 explicitly define extern globals 2004-03-06 10:35:09 +00:00
leitner
78d181cb3e document return values correctly 2004-03-06 10:27:44 +00:00