Mercurial > prosody-hg
comparison net/server_select.lua @ 10234:d4390c427a66
net.server: Handle server name (SNI) as extra argument
Code added in 75d2874502c3, 9a905888b96c and adc0672b700e uses this field.
See #409 and #1408
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 01 Sep 2019 01:58:38 +0200 |
| parents | 600eee3c4752 |
| children | 175b72700d79 |
comparison
equal
deleted
inserted
replaced
| 10233:600eee3c4752 | 10234:d4390c427a66 |
|---|---|
| 315 --// public methods of the object //-- | 315 --// public methods of the object //-- |
| 316 | 316 |
| 317 local handler = bufferqueue -- saves a table ^_^ | 317 local handler = bufferqueue -- saves a table ^_^ |
| 318 | 318 |
| 319 handler.extra = extra | 319 handler.extra = extra |
| 320 if extra then | |
| 321 handler.servername = extra.servername | |
| 322 end | |
| 320 | 323 |
| 321 handler.dispatch = function( ) | 324 handler.dispatch = function( ) |
| 322 return dispatch | 325 return dispatch |
| 323 end | 326 end |
| 324 handler.disconnect = function( ) | 327 handler.disconnect = function( ) |
