Mercurial > prosody-hg
comparison net/server_select.lua @ 4346:28b9384c14fd
net.server_select: Do not set 'ssl' flag simply when assigning an sslctx to a handler, it doesn't mean anything
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sat, 20 Aug 2011 14:59:31 -0400 |
| parents | aff627b1ce95 |
| children | 4b5290dd4e58 |
comparison
equal
deleted
inserted
replaced
| 4345:f6d694b1cdb3 | 4346:28b9384c14fd |
|---|---|
| 509 end | 509 end |
| 510 | 510 |
| 511 -- Set the sslctx | 511 -- Set the sslctx |
| 512 local handshake; | 512 local handshake; |
| 513 function handler.set_sslctx(self, new_sslctx) | 513 function handler.set_sslctx(self, new_sslctx) |
| 514 ssl = true | |
| 515 sslctx = new_sslctx; | 514 sslctx = new_sslctx; |
| 516 local wrote | 515 local wrote |
| 517 local read | 516 local read |
| 518 handshake = coroutine_wrap( function( client ) -- create handshake coroutine | 517 handshake = coroutine_wrap( function( client ) -- create handshake coroutine |
| 519 local err | 518 local err |
