67 Commits

Author SHA1 Message Date
leitner
03461c6eb1 more defensive programming for SIGIO (*groan*) 2003-11-28 17:38:08 +00:00
leitner
3cac9c2b80 make sure the mmap based io_sendfile actually works (and terminates) 2003-11-24 04:12:07 +00:00
leitner
9a0e23f420 oops, left debug #undef in 2003-11-15 00:12:22 +00:00
leitner
a17f7c30d2 use mmap on BSD without sendfile 2003-11-15 00:11:24 +00:00
sanjiyan
a58d400d5c fixing the poll call in io_waituntil2 2003-11-14 14:50:34 +00:00
leitner
0a38894c43 *duh* one extra zero 2003-11-11 19:50:42 +00:00
sanjiyan
29cfd8df4e reset timer correct. 2003-11-07 22:13:49 +00:00
sanjiyan
90bde5e569 reset the timer in the correct way. 2003-11-07 22:11:30 +00:00
leitner
6622288c7c make BSD sendfile actually work 2003-11-07 00:27:50 +00:00
leitner
ba849a2720 duh!!! Typo prevented iob_send from using FreeBSD sendfile 2003-11-07 00:14:27 +00:00
leitner
a4cf7a8a8b fix Solaris /dev/poll 2003-11-06 21:08:30 +00:00
leitner
65adb024f5 bug fixing time 2003-11-06 20:54:59 +00:00
leitner
82a4ae868d broken lose32 port using mingw (don't use!!!)
initial Solaris /dev/poll port
2003-11-06 20:47:59 +00:00
leitner
b81e8bcd27 typo 2003-11-01 04:52:35 +00:00
leitner
17f3955f84 handle BSD errors 2003-11-01 04:51:07 +00:00
leitner
361872ffa4 handle errors properly 2003-11-01 04:47:55 +00:00
leitner
96be549818 handle errors signalled by epoll 2003-11-01 04:44:33 +00:00
leitner
0335358787 add io_finishandshutdown 2003-11-01 00:12:10 +00:00
leitner
0ba7b25005 make iob_reset actually free the buffers 2003-10-31 23:42:04 +00:00
leitner
543987da58 remove superfluous #includes
make it possibly to specify that a buffer should be freed
2003-10-31 23:34:40 +00:00
leitner
27ffe564a7 set flag only if setting to non-blocking worked 2003-10-24 18:57:46 +00:00
leitner
fcd6082250 did not compile on BSD after SIGIO fix 2003-10-22 12:52:40 +00:00
leitner
209fef467e Big Duh! _SIGIO and SIGIO look too close 2003-10-21 12:40:41 +00:00
leitner
ec060d6dee wrong fix 2003-10-21 12:37:49 +00:00
leitner
07a205405b Add DEBUG=1 to GNUmakefile
the epoll guard broke SIGIO
2003-10-21 12:31:14 +00:00
leitner
963fa817de guard against one descriptor being flagged twice 2003-10-19 16:38:31 +00:00
leitner
b01e72af69 quick fix to non-block issue 2003-10-19 10:38:39 +00:00
leitner
eaa4dea67b correctly initialize records before reusing them in io_fd
do something about unexpected epoll events
2003-10-12 16:50:55 +00:00
leitner
29ae01d54f glibc compatibility ;) 2003-10-10 20:13:07 +00:00
leitner
2e1da4790c alloca may be defined in stdlib.h 2003-10-07 16:30:19 +00:00
leitner
d00a672dad alloca warning removal 2003-10-07 16:28:57 +00:00
leitner
f6b5de0c93 forgot to include <unistd.h> 2003-10-06 02:03:43 +00:00
leitner
b97909c538 remove warning 2003-10-06 01:55:49 +00:00
leitner
0c64df2331 make BSD sendfile optional (NetBSD doesn't have it) 2003-10-06 01:54:49 +00:00
leitner
97043d279f make io_waituntil actually take an "until", not a "how long"
fix io_timeouted to ignore fds where no timeout has been set
2003-10-02 23:30:53 +00:00
leitner
3dd2a0344b damn! 2003-09-26 16:16:01 +00:00
leitner
c64f721daf oops, typo 2003-09-26 16:15:04 +00:00
leitner
519b512cc3 kqueue does not like timeout==-1 but wants a NULL pointer to wait
indefinitely
2003-09-26 16:14:03 +00:00
leitner
91368629ad two internal structures were named io_entry; renamed the iob one to iob_entry 2003-09-26 15:55:44 +00:00
leitner
3ec95df805 can't happen error should be -3 not -1 2003-09-24 23:36:00 +00:00
leitner
1de7812da2 man am I slow today 2003-09-24 23:32:42 +00:00
leitner
c574ab3641 two more iob fixes 2003-09-24 23:31:35 +00:00
leitner
e86a457f5c harmonize semantics of io_sendfile and iob_send 2003-09-19 15:26:00 +00:00
leitner
2a2e1ddc75 add sigio support
extend code to cope with edge triggered event notification
add io_eagain() so that you can notify io_wait if accept() returned EAGAIN
2003-09-12 22:03:51 +00:00
leitner
3e2f6d0439 add stupid little httpd 2003-09-10 01:59:12 +00:00
leitner
ea8e1cc90b add iob_adds
add cookies to io
2003-09-10 00:28:51 +00:00
leitner
6b59c8aee7 add TCP_CORK support 2003-09-08 20:58:40 +00:00
leitner
8fd1875041 make iob_send return aggregate total 2003-09-08 20:52:00 +00:00
leitner
3c4f34b95e add loop 2003-09-08 20:48:08 +00:00
leitner
63ba06c763 add iob test 2003-09-08 20:32:43 +00:00