Software /
code /
prosody
Comparison
net/server_select.lua @ 2549:55a50e75c0c0
net.server_select: Report whether a new listener uses SSL or not in the log message
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 31 Jan 2010 16:23:38 +0000 |
parent | 2541:2febd008214e |
child | 2559:a90a00ebae25 |
comparison
equal
deleted
inserted
replaced
2548:e12acef85166 | 2549:55a50e75c0c0 |
---|---|
679 end | 679 end |
680 server:settimeout( 0 ) | 680 server:settimeout( 0 ) |
681 _readlistlen = addsocket(_readlist, server, _readlistlen) | 681 _readlistlen = addsocket(_readlist, server, _readlistlen) |
682 _server[ port ] = handler | 682 _server[ port ] = handler |
683 _socketlist[ server ] = handler | 683 _socketlist[ server ] = handler |
684 out_put( "server.lua: new server listener on '", addr, ":", port, "'" ) | 684 out_put( "server.lua: new "..(sslctx and "ssl " or "").."server listener on '", addr, ":", port, "'" ) |
685 return handler | 685 return handler |
686 end | 686 end |
687 | 687 |
688 getserver = function ( port ) | 688 getserver = function ( port ) |
689 return _server[ port ]; | 689 return _server[ port ]; |