From 0b92e9210cef90a74189ac23a68766636c159fb1 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sat, 9 Jan 2016 05:47:24 +0100 Subject: degesch: Lua: set sockets to nonblocking --- degesch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/degesch.c b/degesch.c index f3e5ddb..11f148d 100644 --- a/degesch.c +++ b/degesch.c @@ -8337,6 +8337,7 @@ lua_plugin_push_connection (struct lua_plugin *plugin, int socket_fd) memset (self, 0, sizeof *self); self->plugin = plugin; + set_blocking (socket_fd, false); poller_fd_init (&self->socket_event, &plugin->ctx->poller, (self->socket_fd = socket_fd)); self->socket_event.dispatcher = (poller_fd_fn) lua_connection_on_ready; -- cgit v1.2.3-70-g09d2