degesch: Lua: set sockets to nonblocking
This commit is contained in:
parent
092e9b5101
commit
0b92e9210c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue