[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [meek/master] We can call net/http Server.Close now.
commit 5835a10d8f4006f18edb7bcd5d176efb93a34057
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date: Fri Dec 13 12:12:39 2019 -0700
We can call net/http Server.Close now.
---
meek-server/meek-server.go | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/meek-server/meek-server.go b/meek-server/meek-server.go
index ea162fe..df6886c 100644
--- a/meek-server/meek-server.go
+++ b/meek-server/meek-server.go
@@ -498,12 +498,9 @@ func main() {
sig := <-sigChan
log.Printf("got signal %s", sig)
- /*
- // Not supported until go1.8.
- for _, server := range servers {
- server.Close()
- }
- */
+ for _, server := range servers {
+ server.Close()
+ }
log.Printf("done")
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits