|
@@ -22,6 +22,7 @@ import (
|
|
|
"io"
|
|
|
"net"
|
|
|
"net/http"
|
|
|
+ "os"
|
|
|
"strconv"
|
|
|
"time"
|
|
|
|
|
@@ -59,6 +60,11 @@ const (
|
|
|
vhostReadWriteTimeout time.Duration = 30 * time.Second
|
|
|
)
|
|
|
|
|
|
+func init() {
|
|
|
+ // Disable quic-go's receive buffer warning.
|
|
|
+ os.Setenv("QUIC_GO_DISABLE_RECEIVE_BUFFER_WARNING", "true")
|
|
|
+}
|
|
|
+
|
|
|
// Server service
|
|
|
type Service struct {
|
|
|
// Dispatch connections to different handlers listen on same port
|