Renamed SPDYLAY_CONCURRENT_STREAMS_MAX as

SPDYLAY_INITIAL_MAX_CONCURRENT_STREAMS
This commit is contained in:
Tatsuhiro Tsujikawa 2012-03-10 18:49:25 +09:00
parent 3918d7fa7d
commit 94c7e89742
4 changed files with 5 additions and 5 deletions

View File

@ -182,7 +182,7 @@ SpdyEventHandler::SpdyEventHandler(const Config* config,
assert(r == 0); assert(r == 0);
spdylay_settings_entry entry; spdylay_settings_entry entry;
entry.settings_id = SPDYLAY_SETTINGS_MAX_CONCURRENT_STREAMS; entry.settings_id = SPDYLAY_SETTINGS_MAX_CONCURRENT_STREAMS;
entry.value = SPDYLAY_CONCURRENT_STREAMS_MAX; entry.value = SPDYLAY_INITIAL_MAX_CONCURRENT_STREAMS;
entry.flags = SPDYLAY_ID_FLAG_SETTINGS_NONE; entry.flags = SPDYLAY_ID_FLAG_SETTINGS_NONE;
r = spdylay_submit_settings(session_, SPDYLAY_FLAG_SETTINGS_NONE, r = spdylay_submit_settings(session_, SPDYLAY_FLAG_SETTINGS_NONE,
&entry, 1); &entry, 1);

View File

@ -153,7 +153,7 @@ typedef enum {
#define SPDYLAY_SETTINGS_MAX 8 #define SPDYLAY_SETTINGS_MAX 8
/* Default maximum concurrent streams */ /* Default maximum concurrent streams */
#define SPDYLAY_CONCURRENT_STREAMS_MAX 100 #define SPDYLAY_INITIAL_MAX_CONCURRENT_STREAMS 100
/* Status code for RST_STREAM */ /* Status code for RST_STREAM */
typedef enum { typedef enum {

View File

@ -164,14 +164,14 @@ static int spdylay_session_new(spdylay_session **session_ptr,
memset((*session_ptr)->remote_settings, 0, memset((*session_ptr)->remote_settings, 0,
sizeof((*session_ptr)->remote_settings)); sizeof((*session_ptr)->remote_settings));
(*session_ptr)->remote_settings[SPDYLAY_SETTINGS_MAX_CONCURRENT_STREAMS] = (*session_ptr)->remote_settings[SPDYLAY_SETTINGS_MAX_CONCURRENT_STREAMS] =
SPDYLAY_CONCURRENT_STREAMS_MAX; SPDYLAY_INITIAL_MAX_CONCURRENT_STREAMS;
(*session_ptr)->remote_settings[SPDYLAY_SETTINGS_INITIAL_WINDOW_SIZE] = (*session_ptr)->remote_settings[SPDYLAY_SETTINGS_INITIAL_WINDOW_SIZE] =
SPDYLAY_INITIAL_WINDOW_SIZE; SPDYLAY_INITIAL_WINDOW_SIZE;
memset((*session_ptr)->local_settings, 0, memset((*session_ptr)->local_settings, 0,
sizeof((*session_ptr)->local_settings)); sizeof((*session_ptr)->local_settings));
(*session_ptr)->local_settings[SPDYLAY_SETTINGS_MAX_CONCURRENT_STREAMS] = (*session_ptr)->local_settings[SPDYLAY_SETTINGS_MAX_CONCURRENT_STREAMS] =
SPDYLAY_CONCURRENT_STREAMS_MAX; SPDYLAY_INITIAL_MAX_CONCURRENT_STREAMS;
(*session_ptr)->local_settings[SPDYLAY_SETTINGS_INITIAL_WINDOW_SIZE] = (*session_ptr)->local_settings[SPDYLAY_SETTINGS_INITIAL_WINDOW_SIZE] =
SPDYLAY_INITIAL_WINDOW_SIZE; SPDYLAY_INITIAL_WINDOW_SIZE;

View File

@ -1931,7 +1931,7 @@ void test_spdylay_submit_settings()
iv, 3)); iv, 3));
/* Make sure that local settings are not changed */ /* Make sure that local settings are not changed */
CU_ASSERT(SPDYLAY_CONCURRENT_STREAMS_MAX == CU_ASSERT(SPDYLAY_INITIAL_MAX_CONCURRENT_STREAMS ==
session->local_settings[SPDYLAY_SETTINGS_MAX_CONCURRENT_STREAMS]); session->local_settings[SPDYLAY_SETTINGS_MAX_CONCURRENT_STREAMS]);
CU_ASSERT(SPDYLAY_INITIAL_WINDOW_SIZE == CU_ASSERT(SPDYLAY_INITIAL_WINDOW_SIZE ==
session->local_settings[SPDYLAY_SETTINGS_INITIAL_WINDOW_SIZE]); session->local_settings[SPDYLAY_SETTINGS_INITIAL_WINDOW_SIZE]);