Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! clamp timeout at 1000 ms
otherwise it's a possible observable change in behavior
  • Loading branch information
bnoordhuis committed May 19, 2020
commit eae2cfc7e1260b75a39c51f9984a7200de96f282
2 changes: 1 addition & 1 deletion src/cares_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ void ChannelWrap::StartTimer() {
}
int timeout = timeout_;
if (timeout == 0) timeout = 1;
if (timeout < 0) timeout = 1000;
if (timeout < 0 || timeout > 1000) timeout = 1000;
uv_timer_start(timer_handle_, AresTimeout, timeout, timeout);
}

Expand Down