aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_select.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-03-23 20:06:02 +0100
committerKim Alvefur <zash@zash.se>2013-03-23 20:06:02 +0100
commit3ec1c834e665cbc60edeaff968899eef642b4450 (patch)
tree4a17402e08fb1e324c6bfc3a0ecea351bfa3592c /net/server_select.lua
parent0ef3252a3f63991bf901fa996085edef60634830 (diff)
downloadprosody-3ec1c834e665cbc60edeaff968899eef642b4450.tar.gz
prosody-3ec1c834e665cbc60edeaff968899eef642b4450.zip
net.server, _select: Reorganise configuration of server_select to be more like server_event
Diffstat (limited to 'net/server_select.lua')
-rw-r--r--net/server_select.lua13
1 files changed, 12 insertions, 1 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index 63a94b7e..8ce9eed2 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -769,7 +769,18 @@ closeall = function( )
end
getsettings = function( )
- return _selecttimeout, _sleeptime, _maxsendlen, _maxreadlen, _checkinterval, _sendtimeout, _readtimeout, nil, _maxselectlen, _maxsslhandshake, _maxfd
+ return {
+ select_timeout = _selecttimeout;
+ select_sleep_time = _sleeptime;
+ max_send_buffer_size = _maxsendlen;
+ max_receive_buffer_size = _maxreadlen;
+ select_idle_check_interval = _checkinterval;
+ send_timeout = _sendtimeout;
+ read_timeout = _readtimeout;
+ max_connections = _maxselectlen;
+ max_ssl_handshake_roundtrips = _maxsslhandshake;
+ highest_allowed_fd = _maxfd;
+ }
end
changesettings = function( new )