# HG changeset patch # User Kim Alvefur # Date 1396358800 -7200 # Node ID 4db0403bfc0df9c805b45ef7256e63305524db05 # Parent b7dd7b8165df7c2f88b5277fd23fbe127d5a858e net.server_{select,event}: Add compat code for supporting the same client port API on connections diff -r b7dd7b8165df -r 4db0403bfc0d net/server_event.lua --- a/net/server_event.lua Mon Mar 31 19:38:06 2014 +0200 +++ b/net/server_event.lua Tue Apr 01 15:26:40 2014 +0200 @@ -367,6 +367,7 @@ function interface_mt:ssl() return self._usingssl end + interface_mt.clientport = interface_mt.port -- COMPAT server_select function interface_mt:type() return self._type or "client" diff -r b7dd7b8165df -r 4db0403bfc0d net/server_select.lua --- 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