Software /
code /
prosody
Diff
net/server_select.lua @ 5385:d663483036db
net.server, _select: Reorganise configuration of server_select to be more like server_event
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 23 Mar 2013 20:06:02 +0100 |
parent | 5338:3df649ec43ea |
child | 5482:f2631a14b953 |
line wrap: on
line diff
--- a/net/server_select.lua Sat Mar 23 15:00:49 2013 +0100 +++ b/net/server_select.lua Sat Mar 23 20:06:02 2013 +0100 @@ -769,7 +769,18 @@ 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 )