Comparison

net/server_select.lua @ 2996:b0515ed4d9d7

util.sasl: 2009 -> 2010 in copyright header.
author Tobias Markmann <tm@ayena.de>
date Fri, 12 Mar 2010 18:37:51 +0100
parent 2598:8a021b304765
child 2997:6ccaefea80ec
comparison
equal deleted inserted replaced
2995:175002d404b8 2996:b0515ed4d9d7
506 _, err = client:dohandshake( ) 506 _, err = client:dohandshake( )
507 if not err then 507 if not err then
508 out_put( "server.lua: ssl handshake done" ) 508 out_put( "server.lua: ssl handshake done" )
509 handler.readbuffer = _readbuffer -- when handshake is done, replace the handshake function with regular functions 509 handler.readbuffer = _readbuffer -- when handshake is done, replace the handshake function with regular functions
510 handler.sendbuffer = _sendbuffer 510 handler.sendbuffer = _sendbuffer
511 out_put ("server.lua: compression used: "..tostring(client:compression()))
512 out_put ("server.lua: finished: "..tostring(client:getfinished()):sub(1, 300):gsub("[\r\n]+", " "):gsub("[%z\1-\31]", "_"))
513 out_put ("server.lua: peer finished: "..tostring(client:getpeerfinished()):sub(1, 300):gsub("[\r\n]+", " "):gsub("[%z\1-\31]", "_"))
511 _ = status and status( handler, "ssl-handshake-complete" ) 514 _ = status and status( handler, "ssl-handshake-complete" )
512 _readlistlen = addsocket(_readlist, client, _readlistlen) 515 _readlistlen = addsocket(_readlist, client, _readlistlen)
513 return true 516 return true
514 else 517 else
515 out_put( "server.lua: error during ssl handshake: ", tostring(err) ) 518 out_put( "server.lua: error during ssl handshake: ", tostring(err) )