Software /
code /
prosody
Comparison
net/server_select.lua @ 3021:bf3c4195c5f8
net.server_select: Remove some debugging code.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 06 May 2010 23:16:50 +0500 |
parent | 3010:52146b82f295 |
child | 3312:12fc7e005e8b |
comparison
equal
deleted
inserted
replaced
3020:4164023a2258 | 3021:bf3c4195c5f8 |
---|---|
518 _, err = client:dohandshake( ) | 518 _, err = client:dohandshake( ) |
519 if not err then | 519 if not err then |
520 out_put( "server.lua: ssl handshake done" ) | 520 out_put( "server.lua: ssl handshake done" ) |
521 handler.readbuffer = _readbuffer -- when handshake is done, replace the handshake function with regular functions | 521 handler.readbuffer = _readbuffer -- when handshake is done, replace the handshake function with regular functions |
522 handler.sendbuffer = _sendbuffer | 522 handler.sendbuffer = _sendbuffer |
523 out_put ("server.lua: compression used: "..tostring(client:compression())) | |
524 out_put ("server.lua: finished: "..tostring(client:getfinished()):sub(1, 300):gsub("[\r\n]+", " "):gsub("[%z\1-\31]", "_")) | |
525 out_put ("server.lua: peer finished: "..tostring(client:getpeerfinished()):sub(1, 300):gsub("[\r\n]+", " "):gsub("[%z\1-\31]", "_")) | |
526 _ = status and status( handler, "ssl-handshake-complete" ) | 523 _ = status and status( handler, "ssl-handshake-complete" ) |
527 _readlistlen = addsocket(_readlist, client, _readlistlen) | 524 _readlistlen = addsocket(_readlist, client, _readlistlen) |
528 return true | 525 return true |
529 else | 526 else |
530 out_put( "server.lua: error during ssl handshake: ", tostring(err) ) | 527 out_put( "server.lua: error during ssl handshake: ", tostring(err) ) |