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
b7335a94
Commit
b7335a94
authored
Jul 18, 2012
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shrpx: Log stream id for spdy connection
parent
c7fe718d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
examples/shrpx_downstream.cc
examples/shrpx_downstream.cc
+2
-1
examples/shrpx_spdy_upstream.cc
examples/shrpx_spdy_upstream.cc
+3
-1
No files found.
examples/shrpx_downstream.cc
View file @
b7335a94
...
@@ -363,7 +363,8 @@ int Downstream::push_request_headers()
...
@@ -363,7 +363,8 @@ int Downstream::push_request_headers()
hdrs
+=
"
\r\n
"
;
hdrs
+=
"
\r\n
"
;
if
(
ENABLE_LOG
)
{
if
(
ENABLE_LOG
)
{
LOG
(
INFO
)
<<
"Downstream request headers
\n
"
<<
hdrs
;
LOG
(
INFO
)
<<
"Downstream request headers id="
<<
stream_id_
<<
"
\n
"
<<
hdrs
;
}
}
bufferevent
*
bev
=
dconn_
->
get_bev
();
bufferevent
*
bev
=
dconn_
->
get_bev
();
evbuffer
*
output
=
bufferevent_get_output
(
bev
);
evbuffer
*
output
=
bufferevent_get_output
(
bev
);
...
...
examples/shrpx_spdy_upstream.cc
View file @
b7335a94
...
@@ -192,7 +192,9 @@ void on_ctrl_recv_callback
...
@@ -192,7 +192,9 @@ void on_ctrl_recv_callback
for
(
size_t
i
=
0
;
nv
[
i
];
i
+=
2
)
{
for
(
size_t
i
=
0
;
nv
[
i
];
i
+=
2
)
{
ss
<<
nv
[
i
]
<<
": "
<<
nv
[
i
+
1
]
<<
"
\n
"
;
ss
<<
nv
[
i
]
<<
": "
<<
nv
[
i
+
1
]
<<
"
\n
"
;
}
}
LOG
(
INFO
)
<<
"Upstream spdy request headers:
\n
"
<<
ss
.
str
();
LOG
(
INFO
)
<<
"Upstream spdy request headers id="
<<
downstream
->
get_stream_id
()
<<
"
\n
"
<<
ss
.
str
();
}
}
DownstreamConnection
*
dconn
;
DownstreamConnection
*
dconn
;
...
...
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