Skip to content

Commit 55b2352

Browse files
reduce idle timeout from 5s to 0.1s
1 parent cea01eb commit 55b2352

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/GLib/signals.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,12 @@ function uv_prepare(src::Ptr{Nothing}, timeout::Ptr{Cint})
297297
else
298298
ccall(:uv_update_time, Nothing, (Ptr{Nothing},), evt)
299299
tmout_ms = ccall(:uv_backend_timeout, Cint, (Ptr{Nothing},), evt)
300-
tmout_min::Cint = (uv_pollfd::_GPollFD).fd == -1 ? 10 : 5000
300+
301+
# TODO: Reinstate this longer conditional timeout if blocking is resolved
302+
# see https://github.com/JuliaLang/julia/issues/35552
303+
# tmout_min::Cint = (uv_pollfd::_GPollFD).fd == -1 ? 10 : 5000
304+
305+
tmout_min::Cint = 10
301306
if tmout_ms < 0 || tmout_ms > tmout_min
302307
tmout_ms = tmout_min
303308
end

0 commit comments

Comments
 (0)