Mercurial > prosody-hg
view util/xpcall.lua @ 13336:f91761822420
net.server_epoll: Avoid call to update socket watch flags when nothing changed
Should skip a syscall for each write when using epoll.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 21 Nov 2023 22:06:28 +0100 |
| parents | d10957394a3c |
| children |
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; };
