Sfoglia il codice sorgente

Increase prefaceTimeout. I actually hit this myself.

Brad Fitzpatrick 11 anni fa
parent
commit
9581fe11cc
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      server.go

+ 1 - 1
server.go

@@ -27,7 +27,7 @@ import (
 )
 
 const (
-	prefaceTimeout        = 5 * time.Second
+	prefaceTimeout        = 10 * time.Second
 	firstSettingsTimeout  = 2 * time.Second // should be in-flight with preface anyway
 	handlerChunkWriteSize = 4 << 10
 	defaultMaxStreams     = 250