Software /
code /
prosody
Diff
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 |
line wrap: on
line diff
--- a/net/server_epoll.lua Sat Oct 12 19:31:48 2019 +0200 +++ b/net/server_epoll.lua Sat Oct 12 19:51:29 2019 +0200 @@ -775,10 +775,10 @@ local client = wrapsocket(conn, nil, read_size, listeners, tls_ctx, extra) local ok, err = client:init(); if not ok then return ok, err; end + client:debug("Client %s created", client); if tls_ctx then client:starttls(tls_ctx); end - client:debug("Client %s created", client); return client, conn; end