Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
94c7e897
Commit
94c7e897
authored
Mar 10, 2012
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed SPDYLAY_CONCURRENT_STREAMS_MAX as
SPDYLAY_INITIAL_MAX_CONCURRENT_STREAMS
parent
3918d7fa
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
examples/SpdyServer.cc
examples/SpdyServer.cc
+1
-1
lib/includes/spdylay/spdylay.h
lib/includes/spdylay/spdylay.h
+1
-1
lib/spdylay_session.c
lib/spdylay_session.c
+2
-2
tests/spdylay_session_test.c
tests/spdylay_session_test.c
+1
-1
No files found.
examples/SpdyServer.cc
View file @
94c7e897
...
...
@@ -182,7 +182,7 @@ SpdyEventHandler::SpdyEventHandler(const Config* config,
assert
(
r
==
0
);
spdylay_settings_entry
entry
;
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
;
r
=
spdylay_submit_settings
(
session_
,
SPDYLAY_FLAG_SETTINGS_NONE
,
&
entry
,
1
);
...
...
lib/includes/spdylay/spdylay.h
View file @
94c7e897
...
...
@@ -153,7 +153,7 @@ typedef enum {
#define SPDYLAY_SETTINGS_MAX 8
/* Default maximum concurrent streams */
#define SPDYLAY_
CONCURRENT_STREAMS_MAX
100
#define SPDYLAY_
INITIAL_MAX_CONCURRENT_STREAMS
100
/* Status code for RST_STREAM */
typedef
enum
{
...
...
lib/spdylay_session.c
View file @
94c7e897
...
...
@@ -164,14 +164,14 @@ static int spdylay_session_new(spdylay_session **session_ptr,
memset
((
*
session_ptr
)
->
remote_settings
,
0
,
sizeof
((
*
session_ptr
)
->
remote_settings
));
(
*
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
]
=
SPDYLAY_INITIAL_WINDOW_SIZE
;
memset
((
*
session_ptr
)
->
local_settings
,
0
,
sizeof
((
*
session_ptr
)
->
local_settings
));
(
*
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
]
=
SPDYLAY_INITIAL_WINDOW_SIZE
;
...
...
tests/spdylay_session_test.c
View file @
94c7e897
...
...
@@ -1931,7 +1931,7 @@ void test_spdylay_submit_settings()
iv
,
3
));
/* 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
]);
CU_ASSERT
(
SPDYLAY_INITIAL_WINDOW_SIZE
==
session
->
local_settings
[
SPDYLAY_SETTINGS_INITIAL_WINDOW_SIZE
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment