Skip to content

Commit d176c98

Browse files
committed
fix: restore 0ms timeout in cancel_timer to resolve performance regression
Fixes #775
1 parent 4640957 commit d176c98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hackney_pool.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,8 @@ cancel_timer(Socket, Timer) ->
477477
receive
478478
{timeout, Socket} -> ok
479479
after
480-
100 ->
481-
%% Safety timeout - if message doesn't arrive, continue anyway
480+
0 ->
481+
%% No wait - if message doesn't exist, continue immediately
482482
ok
483483
end;
484484
_ ->

0 commit comments

Comments
 (0)