Software /
code /
prosody
Comparison
net/server_select.lua @ 7096:95e4c81291cc
server_select: Pause and mark server as full if accepting a client fails (fixes #597)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 22 Jan 2016 02:00:27 +0100 |
parent | 7095:3e1dac35af87 |
child | 7097:5a71aaa2c542 |
comparison
equal
deleted
inserted
replaced
7095:3e1dac35af87 | 7096:95e4c81291cc |
---|---|
256 return dispatch( handler ); | 256 return dispatch( handler ); |
257 end | 257 end |
258 return; | 258 return; |
259 elseif err then -- maybe timeout or something else | 259 elseif err then -- maybe timeout or something else |
260 out_put( "server.lua: error with new client connection: ", tostring(err) ) | 260 out_put( "server.lua: error with new client connection: ", tostring(err) ) |
261 handler.pause( ) | |
262 _fullservers[ handler ] = _currenttime | |
261 return false | 263 return false |
262 end | 264 end |
263 end | 265 end |
264 return handler | 266 return handler |
265 end | 267 end |