]> Cypherpunks repositories - gostls13.git/commit
net/http: stop ExampleServer_Shutdown from hanging on error
authorPatrik Lundin <patrik@sigterm.se>
Thu, 4 Jul 2019 22:48:23 +0000 (22:48 +0000)
committerEmmanuel Odeke <emm.odeke@gmail.com>
Fri, 5 Jul 2019 00:26:14 +0000 (00:26 +0000)
commit04e2e81ecbb6a34863cb46f22d7b8f434c8b852f
treef84dfacff16bcfd7b4600364a61ff4a7c6ba1cc9
parentadcb2b1e7aef2d06ec19cad52f24e8271a12d26a
net/http: stop ExampleServer_Shutdown from hanging on error

Running the example code when not having permissions
to bind to port 80 will cause the program to hang after
printing the error message.

Change-Id: I2433ba2629b362fc8f1731e40cab5eea72ec354f
GitHub-Last-Rev: 0bb3dc08b6f646470fc6ff208ea12bca901a2299
GitHub-Pull-Request: golang/go#32947
Reviewed-on: https://go-review.googlesource.com/c/go/+/185157
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/http/example_test.go