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
9671eaa8
Commit
9671eaa8
authored
Mar 04, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asio: Set stream pointer to request and response in stream ctor
parent
062b4291
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
src/asio_client_session_impl.cc
src/asio_client_session_impl.cc
+1
-6
src/asio_client_stream.cc
src/asio_client_stream.cc
+4
-1
No files found.
src/asio_client_session_impl.cc
View file @
9671eaa8
...
@@ -355,12 +355,7 @@ stream *session_impl::create_push_stream(int32_t stream_id) {
...
@@ -355,12 +355,7 @@ stream *session_impl::create_push_stream(int32_t stream_id) {
}
}
std
::
unique_ptr
<
stream
>
session_impl
::
create_stream
()
{
std
::
unique_ptr
<
stream
>
session_impl
::
create_stream
()
{
auto
strm
=
make_unique
<
stream
>
(
this
);
return
make_unique
<
stream
>
(
this
);
auto
&
req
=
strm
->
request
().
impl
();
req
.
stream
(
strm
.
get
());
return
strm
;
}
}
const
request
*
session_impl
::
submit
(
boost
::
system
::
error_code
&
ec
,
const
request
*
session_impl
::
submit
(
boost
::
system
::
error_code
&
ec
,
...
...
src/asio_client_stream.cc
View file @
9671eaa8
...
@@ -32,7 +32,10 @@ namespace nghttp2 {
...
@@ -32,7 +32,10 @@ namespace nghttp2 {
namespace
asio_http2
{
namespace
asio_http2
{
namespace
client
{
namespace
client
{
stream
::
stream
(
session_impl
*
sess
)
:
sess_
(
sess
),
stream_id_
(
0
)
{}
stream
::
stream
(
session_impl
*
sess
)
:
sess_
(
sess
),
stream_id_
(
0
)
{
request_
.
impl
().
stream
(
this
);
}
void
stream
::
cancel
()
{
sess_
->
cancel
(
*
this
);
}
void
stream
::
cancel
()
{
sess_
->
cancel
(
*
this
);
}
...
...
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