Software /
code /
prosody
Comparison
net/server.lua @ 855:57057f2cbecb
net.server: Fix to make sure we send a string to logging function
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 02 Mar 2009 19:49:09 +0000 |
parent | 850:edbd0d1fce93 |
child | 867:21347a87e185 |
comparison
equal
deleted
inserted
replaced
854:b9cfc9d5496a | 855:57057f2cbecb |
---|---|
436 _readtraffic = _readtraffic + count | 436 _readtraffic = _readtraffic + count |
437 _readtimes[ handler ] = _currenttime | 437 _readtimes[ handler ] = _currenttime |
438 --out_put( "server.lua: read data '", buffer, "', error: ", err ) | 438 --out_put( "server.lua: read data '", buffer, "', error: ", err ) |
439 return dispatch( handler, buffer, err ) | 439 return dispatch( handler, buffer, err ) |
440 else -- connections was closed or fatal error | 440 else -- connections was closed or fatal error |
441 out_put( "server.lua: client ", ip, ":", clientport, " error: ", err ) | 441 out_put( "server.lua: client ", ip, ":", tostring(clientport), " error: ", tostring(err) ) |
442 fatalerror = true | 442 fatalerror = true |
443 disconnect( handler, err ) | 443 disconnect( handler, err ) |
444 _ = handler and handler.close( ) | 444 _ = handler and handler.close( ) |
445 return false | 445 return false |
446 end | 446 end |