aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-28 16:49:28 +0100
committerKim Alvefur <zash@zash.se>2018-10-28 16:49:28 +0100
commit7abfe39cc3a0949c8bde868dd3811bf33149897d (patch)
treeb81867187ddb49dc989c86aa49ac8d56db818876
parent84c8383fb69596d4907e67cd4832147a12156361 (diff)
downloadprosody-7abfe39cc3a0949c8bde868dd3811bf33149897d.tar.gz
prosody-7abfe39cc3a0949c8bde868dd3811bf33149897d.zip
net.server_select: Deprecate connection:lock_read() method
-rw-r--r--net/server_select.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index bc86742c..1c016633 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -456,8 +456,8 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
maxreadlen = readlen or maxreadlen
return bufferlen, maxreadlen, maxsendlen
end
- --TODO: Deprecate
handler.lock_read = function (self, switch)
+ out_error( "server.lua, lock_read() is deprecated, use pause() and resume()" )
if switch == true then
local tmp = _readlistlen
_readlistlen = removesocket( _readlist, socket, _readlistlen )