Software /
code /
prosody
Comparison
net/server_select.lua @ 5490:ab821566ede8
Backed out changeset f2631a14b953
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 18 Apr 2013 00:39:59 +0100 |
parent | 5482:f2631a14b953 |
child | 5491:55faa2fd5549 |
comparison
equal
deleted
inserted
replaced
5482:f2631a14b953 | 5490:ab821566ede8 |
---|---|
549 if not err then | 549 if not err then |
550 out_put( "server.lua: ssl handshake done" ) | 550 out_put( "server.lua: ssl handshake done" ) |
551 handler.readbuffer = _readbuffer -- when handshake is done, replace the handshake function with regular functions | 551 handler.readbuffer = _readbuffer -- when handshake is done, replace the handshake function with regular functions |
552 handler.sendbuffer = _sendbuffer | 552 handler.sendbuffer = _sendbuffer |
553 _ = status and status( handler, "ssl-handshake-complete" ) | 553 _ = status and status( handler, "ssl-handshake-complete" ) |
554 if self.autostart_ssl and listeners.onconnect then | |
555 listeners.onconnect(self); | |
556 end | |
554 _readlistlen = addsocket(_readlist, client, _readlistlen) | 557 _readlistlen = addsocket(_readlist, client, _readlistlen) |
555 return true | 558 return true |
556 else | 559 else |
557 if err == "wantwrite" then | 560 if err == "wantwrite" then |
558 _sendlistlen = addsocket(_sendlist, client, _sendlistlen) | 561 _sendlistlen = addsocket(_sendlist, client, _sendlistlen) |