Explorar el Código

close http2 server immediately. fixes #1051

Darien Raymond hace 7 años
padre
commit
9d8922f523
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      transport/internet/http/hub.go

+ 1 - 1
transport/internet/http/hub.go

@@ -26,7 +26,7 @@ func (l *Listener) Addr() net.Addr {
 }
 
 func (l *Listener) Close() error {
-	return l.server.Shutdown(context.Background())
+	return l.server.Close()
 }
 
 type flushWriter struct {