Software / code / prosody
File
util/xpcall.lua @ 13809:2cfb6625b6d2 13.0
net.server_epoll: Use correct connection timeout when initiating Direct TLS
Otherwise it takes a lot longer to time out Direct TLS connections than
TCP / STARTTLS connections.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 02 Apr 2025 15:54:31 +0200 |
| parent | 12975:d10957394a3c |
line wrap: on
line source
local xpcall = xpcall; if select(2, xpcall(function (x) return x end, function () end, "test")) ~= "test" then xpcall = require"prosody.util.compat".xpcall; end return { xpcall = xpcall; };