ARTICLE AD BOX
I'd like to test Go's http.Server.Shutdown() timing out, but there are no connections held open when the shutdown signal is sent, so it never gets to checking for timeouts, even though the timeout is in the past.
How can I convince an http.Server that it has connections open and is waiting for them to close?
1

1
Err, open some? From client browsers?
user207421
– user207421
2025-12-29 00:55:38 +00:00
Commented 6 hours ago