Software /
code /
prosody
Comparison
net/server_select.lua @ 3687:55acf6df9a18
net.server_select: Set select() timeout to 3600 by default.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 02 Dec 2010 23:07:45 +0500 |
parent | 3686:27d3e2a2a248 |
child | 3775:f3f2a7810108 |
comparison
equal
deleted
inserted
replaced
3686:27d3e2a2a248 | 3687:55acf6df9a18 |
---|---|
147 _timerlistlen = 0 -- lenght of timerlist | 147 _timerlistlen = 0 -- lenght of timerlist |
148 | 148 |
149 _sendtraffic = 0 -- some stats | 149 _sendtraffic = 0 -- some stats |
150 _readtraffic = 0 | 150 _readtraffic = 0 |
151 | 151 |
152 _selecttimeout = 1 -- timeout of socket.select | 152 _selecttimeout = 3600 -- timeout of socket.select |
153 _sleeptime = 0 -- time to wait at the end of every loop | 153 _sleeptime = 0 -- time to wait at the end of every loop |
154 | 154 |
155 _maxsendlen = 51000 * 1024 -- max len of send buffer | 155 _maxsendlen = 51000 * 1024 -- max len of send buffer |
156 _maxreadlen = 25000 * 1024 -- max len of read buffer | 156 _maxreadlen = 25000 * 1024 -- max len of read buffer |
157 | 157 |