Browse Source

Use the initialWindowSize constant directly when setting the conn flow

Using the sc.initialWindowSize was unnecessarily confusing.
Brad Fitzpatrick 11 years ago
parent
commit
987661858c
1 changed files with 1 additions and 1 deletions
  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)