Software /
code /
prosody
Comparison
net/server_epoll.lua @ 7811:24f99d11b792
net.server_epoll: Fix traceback if wrapclient called without a pattern or parent server
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 05 Jan 2017 06:21:31 +0100 |
parent | 7800:dadf9ba290c5 |
child | 7817:4e3654031693 |
comparison
equal
deleted
inserted
replaced
7810:cdb5dd9f35c0 | 7811:24f99d11b792 |
---|---|
470 local conn = setmetatable({ | 470 local conn = setmetatable({ |
471 conn = client; | 471 conn = client; |
472 server = server; | 472 server = server; |
473 created = gettime(); | 473 created = gettime(); |
474 listeners = listeners; | 474 listeners = listeners; |
475 _pattern = pattern or server._pattern; | 475 _pattern = pattern or (server and server._pattern); |
476 writebuffer = {}; | 476 writebuffer = {}; |
477 tls = tls; | 477 tls = tls; |
478 }, interface_mt); | 478 }, interface_mt); |
479 | 479 |
480 if client.getpeername then | 480 if client.getpeername then |