Software /
code /
prosody
Comparison
net/server_epoll.lua @ 9695:5ec4eaf76de8
net.server_epoll: Call onconnect right after accept()ing a new client
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 08 Dec 2018 21:17:39 +0100 |
parent | 9666:270216874740 |
child | 9696:ed0917381b4d |
comparison
equal
deleted
inserted
replaced
9694:faebfd3ad2a1 | 9695:5ec4eaf76de8 |
---|---|
575 local client = wrapsocket(conn, self, nil, self.listeners); | 575 local client = wrapsocket(conn, self, nil, self.listeners); |
576 log("debug", "New connection %s", tostring(client)); | 576 log("debug", "New connection %s", tostring(client)); |
577 client:init(); | 577 client:init(); |
578 if self.tls_direct then | 578 if self.tls_direct then |
579 client:starttls(self.tls_ctx); | 579 client:starttls(self.tls_ctx); |
580 else | |
581 client:onconnect(); | |
580 end | 582 end |
581 end | 583 end |
582 | 584 |
583 -- Initialization | 585 -- Initialization |
584 function interface:init() | 586 function interface:init() |