Add kqueue event module. Code inspired by nginx. There are a lot of room for optimization here, this is just first working version.

This commit is contained in:
Gleb Smirnoff
2017-12-28 10:39:17 -08:00
committed by Justin Maggard
parent aefe4dd0bf
commit 7ba9e52fc8
7 changed files with 254 additions and 32 deletions

View File

@ -123,7 +123,7 @@ void
CloseSocket_upnphttp(struct upnphttp * h)
{
event_module.del(&h->ev);
event_module.del(&h->ev, EV_FLAG_CLOSING);
if(close(h->ev.fd) < 0)
{
DPRINTF(E_ERROR, L_HTTP, "CloseSocket_upnphttp: close(%d): %s\n", h->ev.fd, strerror(errno));