From 3918d7fa7d64b06c717dd69fc37f7e3020e4e160 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 10 Mar 2012 18:45:38 +0900 Subject: [PATCH] spdyd: Send SETTINGS frame after connection is established. --- examples/SpdyServer.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/SpdyServer.cc b/examples/SpdyServer.cc index 286bd648..89e25772 100644 --- a/examples/SpdyServer.cc +++ b/examples/SpdyServer.cc @@ -180,6 +180,13 @@ SpdyEventHandler::SpdyEventHandler(const Config* config, int r; r = spdylay_session_server_new(&session_, version, callbacks, this); assert(r == 0); + spdylay_settings_entry entry; + entry.settings_id = SPDYLAY_SETTINGS_MAX_CONCURRENT_STREAMS; + entry.value = SPDYLAY_CONCURRENT_STREAMS_MAX; + entry.flags = SPDYLAY_ID_FLAG_SETTINGS_NONE; + r = spdylay_submit_settings(session_, SPDYLAY_FLAG_SETTINGS_NONE, + &entry, 1); + assert(r == 0); } SpdyEventHandler::~SpdyEventHandler()