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 | 8e0208a80558cb73757dfe83cb08fe8e1082f541 (patch) | |
tree | 9df0a7723d675c976c654c1b35d6c6b57f379258 /net | |
parent | 4c8e24cd0aa6c4ff6d84f8b9340d146220752cf7 (diff) | |
download | prosody-8e0208a80558cb73757dfe83cb08fe8e1082f541.tar.gz prosody-8e0208a80558cb73757dfe83cb08fe8e1082f541.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 |