Software /
code /
prosody
Diff
net/server_select.lua @ 9574:03214e6e3272
net.server_select: Deprecate connection:lock_read() method
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 28 Oct 2018 16:49:28 +0100 |
parent | 9499:36e379f058c8 |
child | 9576:913a17d6c449 |
line wrap: on
line diff
--- a/net/server_select.lua Sat Oct 27 20:44:53 2018 +0200 +++ b/net/server_select.lua Sun Oct 28 16:49:28 2018 +0100 @@ -456,8 +456,8 @@ 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 )