Browse Source

Send some initial settings.

Brad Fitzpatrick 11 years ago
parent
commit
87829bbff4
1 changed files with 5 additions and 1 deletions
  1. 5 1
      server.go

+ 5 - 1
server.go

@@ -405,7 +405,11 @@ func (sc *serverConn) serve() {
 
 func (sc *serverConn) sendInitialSettings(_ interface{}) error {
 	sc.writeG.check()
-	return sc.framer.WriteSettings( /* TODO: actual settings */ )
+	return sc.framer.WriteSettings(
+		Setting{SettingMaxFrameSize, 1 << 20},
+		Setting{SettingMaxConcurrentStreams, 250}, // TODO: tunable?
+		/* TODO: more actual settings */
+	)
 }
 
 // readPreface reads the ClientPreface greeting from the peer