Comparison

net/server.lua @ 996:6fb96dffb2c1

net.server: Simple logging fix
author Matthew Wild <mwild1@gmail.com>
date Sun, 12 Apr 2009 17:03:34 +0100
parent 994:8fd4efc3ed96
child 999:c088139d8f05
comparison
equal deleted inserted replaced
995:a007d85b4045 996:6fb96dffb2c1
455 local succ, err, byte = send( socket, buffer, 1, bufferlen ) 455 local succ, err, byte = send( socket, buffer, 1, bufferlen )
456 local count = ( succ or byte or 0 ) * STAT_UNIT 456 local count = ( succ or byte or 0 ) * STAT_UNIT
457 sendtraffic = sendtraffic + count 457 sendtraffic = sendtraffic + count
458 _sendtraffic = _sendtraffic + count 458 _sendtraffic = _sendtraffic + count
459 _ = _cleanqueue and clean( bufferqueue ) 459 _ = _cleanqueue and clean( bufferqueue )
460 --out_put( "server.lua: sended '", buffer, "', bytes: ", succ, ", error: ", err, ", part: ", byte, ", to: ", ip, ":", clientport ) 460 --out_put( "server.lua: sended '", buffer, "', bytes: ", tostring(succ), ", error: ", tostring(err), ", part: ", tostring(byte), ", to: ", tostring(ip), ":", tostring(clientport) )
461 if succ then -- sending succesful 461 if succ then -- sending succesful
462 bufferqueuelen = 0 462 bufferqueuelen = 0
463 bufferlen = 0 463 bufferlen = 0
464 _sendlistlen = removesocket( _sendlist, socket, _sendlistlen ) -- delete socket from writelist 464 _sendlistlen = removesocket( _sendlist, socket, _sendlistlen ) -- delete socket from writelist
465 _ = needtls and handler.starttls(true) 465 _ = needtls and handler.starttls(true)