Software /
code /
prosody
Comparison
net/server_epoll.lua @ 10328:5c2b31c823b9
net.server_epoll: Move a log message to improve ordering
It was weird that it said "Prepared to start TLS" before "Client .. created"
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 12 Oct 2019 19:51:29 +0200 |
parent | 10309:2a31571efce0 |
child | 10329:c0a72c97e6cf |
comparison
equal
deleted
inserted
replaced
10327:34f7a0e8fa59 | 10328:5c2b31c823b9 |
---|---|
773 local ok, err = conn:setpeername(addr, port); | 773 local ok, err = conn:setpeername(addr, port); |
774 if not ok and err ~= "timeout" then return ok, err; end | 774 if not ok and err ~= "timeout" then return ok, err; end |
775 local client = wrapsocket(conn, nil, read_size, listeners, tls_ctx, extra) | 775 local client = wrapsocket(conn, nil, read_size, listeners, tls_ctx, extra) |
776 local ok, err = client:init(); | 776 local ok, err = client:init(); |
777 if not ok then return ok, err; end | 777 if not ok then return ok, err; end |
778 client:debug("Client %s created", client); | |
778 if tls_ctx then | 779 if tls_ctx then |
779 client:starttls(tls_ctx); | 780 client:starttls(tls_ctx); |
780 end | 781 end |
781 client:debug("Client %s created", client); | |
782 return client, conn; | 782 return client, conn; |
783 end | 783 end |
784 | 784 |
785 local function watchfd(fd, onreadable, onwritable) | 785 local function watchfd(fd, onreadable, onwritable) |
786 local conn = setmetatable({ | 786 local conn = setmetatable({ |