Files
f1f3dbd6c2 Handle zero time correctly in gonet.deadlineTimer.
After setDeadline(ch, timer, time.Time{}), the timer pointer is not reset and
may point to an already expired timer. So the next call to setDeadline() will
close the cancel channel, even though the timer did not expire. This was fixed
by setting timer to nil if time.Time.IsZero().

Fixes #9885

Co-authored-by: snyh <snyh@snyh.org>
PiperOrigin-RevId: 598940274
2024-01-16 13:32:33 -08:00
..