equal
deleted
inserted
replaced
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) |