Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
5384:24f4aed5824f | 5385:d663483036db |
---|---|
767 _socketlist = { } | 767 _socketlist = { } |
768 --mem_free( ) | 768 --mem_free( ) |
769 end | 769 end |
770 | 770 |
771 getsettings = function( ) | 771 getsettings = function( ) |
772 return _selecttimeout, _sleeptime, _maxsendlen, _maxreadlen, _checkinterval, _sendtimeout, _readtimeout, nil, _maxselectlen, _maxsslhandshake, _maxfd | 772 return { |
773 select_timeout = _selecttimeout; | |
774 select_sleep_time = _sleeptime; | |
775 max_send_buffer_size = _maxsendlen; | |
776 max_receive_buffer_size = _maxreadlen; | |
777 select_idle_check_interval = _checkinterval; | |
778 send_timeout = _sendtimeout; | |
779 read_timeout = _readtimeout; | |
780 max_connections = _maxselectlen; | |
781 max_ssl_handshake_roundtrips = _maxsslhandshake; | |
782 highest_allowed_fd = _maxfd; | |
783 } | |
773 end | 784 end |
774 | 785 |
775 changesettings = function( new ) | 786 changesettings = function( new ) |
776 if type( new ) ~= "table" then | 787 if type( new ) ~= "table" then |
777 return nil, "invalid settings table" | 788 return nil, "invalid settings table" |