diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2016-01-09 05:47:24 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2016-01-09 05:47:24 +0100 |
commit | 0b92e9210cef90a74189ac23a68766636c159fb1 (patch) | |
tree | 8601cf798d9e24890f01ffb26b6b7c3f6297858e | |
parent | 092e9b5101277da5211a3a01569350477ef207df (diff) | |
download | xK-0b92e9210cef90a74189ac23a68766636c159fb1.tar.gz xK-0b92e9210cef90a74189ac23a68766636c159fb1.tar.xz xK-0b92e9210cef90a74189ac23a68766636c159fb1.zip |
degesch: Lua: set sockets to nonblocking
-rw-r--r-- | degesch.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |