degesch: Lua: set sockets to nonblocking

This commit is contained in:
Přemysl Eric Janouch 2016-01-09 05:47:24 +01:00
parent 092e9b5101
commit 0b92e9210c
1 changed files with 1 additions and 0 deletions

View File

@ -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;