Explorar el Código

Use the initialWindowSize constant directly when setting the conn flow

Using the sc.initialWindowSize was unnecessarily confusing.
Brad Fitzpatrick hace 11 años
padre
commit
987661858c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      server.go

+ 1 - 1
server.go

@@ -176,7 +176,7 @@ func (srv *Server) handleConn(hs *http.Server, c net.Conn, h http.Handler) {
 		serveG:            newGoroutineLock(),
 		pushEnabled:       true,
 	}
-	sc.flow.add(sc.initialWindowSize)
+	sc.flow.add(initialWindowSize)
 	sc.hpackEncoder = hpack.NewEncoder(&sc.headerWriteBuf)
 	sc.hpackDecoder = hpack.NewDecoder(initialHeaderTableSize, sc.onNewHeaderField)