Closed kmanley closed 9 years ago
Can confirm this behavior. Was trying to setup a reload after receiving a syscall.SIGINT. LisenAndServe stops serving new requests but hangs, preventing reload.
This is fixed with the merge of the non-backwards-compat branch.
Try the program below. If you run it and press Ctrl-C it exits. If you run it, then hit localhost:8080/foo with firefox or chrome, then Ctrl-C the program, it will hang. This happens because the http.Server created inside func (s *GracefulServer) Serve(...) doesn't have a read timeout set.
There's an easy fix, I'll send a pull request.