diff options
author | Kim Alvefur <zash@zash.se> | 2016-05-04 15:20:33 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-05-04 15:20:33 +0200 |
commit | fc5911e5ebe3561aeb3df94437ee8b1504fc318b (patch) | |
tree | 9df0a7723d675c976c654c1b35d6c6b57f379258 /net | |
parent | fd873c5d1338091f466e74683d85e6f1121969b1 (diff) | |
download | prosody-fc5911e5ebe3561aeb3df94437ee8b1504fc318b.tar.gz prosody-fc5911e5ebe3561aeb3df94437ee8b1504fc318b.zip |
net.server_event: Collect entire one line function on one line
Diffstat (limited to 'net')
-rw-r--r-- | net/server_event.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/server_event.lua b/net/server_event.lua index 1329a43d..e0dc175f 100644 --- a/net/server_event.lua +++ b/net/server_event.lua @@ -588,10 +588,7 @@ local function handleclient( client, ip, port, server, pattern, listener, sslctx interface.eventwrite = addevent( base, interface.conn, EV_WRITE, interface.writecallback, cfg.WRITE_TIMEOUT ) end interface.eventreadtimeout = addevent( base, nil, EV_TIMEOUT, - function( ) - interface:_close() - end, cfg.READ_TIMEOUT - ) + function( ) interface:_close() end, cfg.READ_TIMEOUT) debug( "wantwrite during read attempt, reg it in writecallback but dont know what really happens next..." ) -- to be honest i dont know what happens next, if it is allowed to first read, the write etc... else -- connection was closed or fatal error |