Software /
code /
prosody
Diff
net/server_select.lua @ 6047:4db0403bfc0d
net.server_{select,event}: Add compat code for supporting the same client port API on connections
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 01 Apr 2014 15:26:40 +0200 |
parent | 5949:a9abbdeddbf3 |
child | 6054:7a5ddbaf758d |
child | 6314:8029b8a5f37a |
line wrap: on
line diff
--- a/net/server_select.lua Mon Mar 31 19:38:06 2014 +0200 +++ b/net/server_select.lua Tue Apr 01 15:26:40 2014 +0200 @@ -397,6 +397,7 @@ handler.clientport = function( ) return clientport end + handler.port = handler.clientport -- COMPAT server_event local write = function( self, data ) bufferlen = bufferlen + #data if bufferlen > maxsendlen then