diff options
-rw-r--r-- | plop.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -195,6 +195,12 @@ int handle_server(lua_State * L, const int efd, const int server) } } + if (-1 == fcntl(client, F_SETFL, (fcntl(client, F_GETFL, 0) | O_NONBLOCK))) + { + close(client); + return 0; // TODO: Retriage this error at some point. + } + // TODO: Request is not the enitre state of the client. Make them distinct along with responses. struct request * request = new_request(L); if (NULL == request) |