how could this ever have worked?

master
leitner 20 years ago
parent 8946f912e8
commit fd4344f3c0

@ -13,6 +13,7 @@
buffer_getline is now a function, not a macro buffer_getline is now a function, not a macro
add iob_write (send io batch through callback, e.g. for SSL) add iob_write (send io batch through callback, e.g. for SSL)
add errmsg_info and errmsg_infosys to write to stdout instead add errmsg_info and errmsg_infosys to write to stdout instead
epoll fix
0.20: 0.20:
add errmsg API add errmsg API

@ -26,7 +26,7 @@ void io_dontwantread(int64 d) {
#ifdef HAVE_EPOLL #ifdef HAVE_EPOLL
if (io_waitmode==EPOLL) { if (io_waitmode==EPOLL) {
struct epoll_event x; struct epoll_event x;
x.events=EPOLLIN; x.events=0;
if (e->wantwrite) x.events|=EPOLLOUT; if (e->wantwrite) x.events|=EPOLLOUT;
x.data.fd=d; x.data.fd=d;
epoll_ctl(io_master,newfd?EPOLL_CTL_DEL:EPOLL_CTL_MOD,d,&x); epoll_ctl(io_master,newfd?EPOLL_CTL_DEL:EPOLL_CTL_MOD,d,&x);

@ -26,7 +26,7 @@ void io_dontwantwrite(int64 d) {
#ifdef HAVE_EPOLL #ifdef HAVE_EPOLL
if (io_waitmode==EPOLL) { if (io_waitmode==EPOLL) {
struct epoll_event x; struct epoll_event x;
x.events=EPOLLOUT; x.events=0;
if (e->wantread) x.events|=EPOLLIN; if (e->wantread) x.events|=EPOLLIN;
x.data.fd=d; x.data.fd=d;
epoll_ctl(io_master,newfd?EPOLL_CTL_DEL:EPOLL_CTL_MOD,d,&x); epoll_ctl(io_master,newfd?EPOLL_CTL_DEL:EPOLL_CTL_MOD,d,&x);

Loading…
Cancel
Save