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
ba671a84
Commit
ba671a84
authored
Dec 10, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'apohl79-master'
parents
86505b1c
66bbb5c7
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
26 additions
and
0 deletions
+26
-0
src/asio_io_service_pool.cc
src/asio_io_service_pool.cc
+4
-0
src/asio_io_service_pool.h
src/asio_io_service_pool.h
+3
-0
src/asio_server.cc
src/asio_server.cc
+4
-0
src/asio_server.h
src/asio_server.h
+3
-0
src/asio_server_http2.cc
src/asio_server_http2.cc
+4
-0
src/asio_server_http2_impl.cc
src/asio_server_http2_impl.cc
+4
-0
src/asio_server_http2_impl.h
src/asio_server_http2_impl.h
+1
-0
src/includes/nghttp2/asio_http2_server.h
src/includes/nghttp2/asio_http2_server.h
+3
-0
No files found.
src/asio_io_service_pool.cc
View file @
ba671a84
...
...
@@ -92,6 +92,10 @@ boost::asio::io_service &io_service_pool::get_io_service() {
return
io_service
;
}
const
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
&
io_service_pool
::
get_io_services
()
const
{
return
io_services_
;
}
}
// namespace asio_http2
}
// namespace nghttp2
src/asio_io_service_pool.h
View file @
ba671a84
...
...
@@ -70,6 +70,9 @@ public:
/// Get an io_service to use.
boost
::
asio
::
io_service
&
get_io_service
();
/// Get access to all io_service objects.
const
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
&
get_io_services
()
const
;
private:
/// The pool of io_services.
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
io_services_
;
...
...
src/asio_server.cc
View file @
ba671a84
...
...
@@ -169,6 +169,10 @@ void server::stop() { io_service_pool_.stop(); }
void
server
::
join
()
{
io_service_pool_
.
join
();
}
const
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
&
server
::
get_io_services
()
const
{
return
io_service_pool_
.
get_io_services
();
}
}
// namespace server
}
// namespace asio_http2
}
// namespace nghttp2
src/asio_server.h
View file @
ba671a84
...
...
@@ -73,6 +73,9 @@ public:
void
join
();
void
stop
();
/// Get access to all io_service objects.
const
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
&
get_io_services
()
const
;
private:
/// Initiate an asynchronous accept operation.
void
start_accept
(
tcp
::
acceptor
&
acceptor
,
serve_mux
&
mux
);
...
...
src/asio_server_http2.cc
View file @
ba671a84
...
...
@@ -77,6 +77,10 @@ void http2::stop() { impl_->stop(); }
void
http2
::
join
()
{
return
impl_
->
join
();
}
const
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
&
http2
::
get_io_services
()
const
{
return
impl_
->
get_io_services
();
}
}
// namespace server
}
// namespace asio_http2
...
...
src/asio_server_http2_impl.cc
View file @
ba671a84
...
...
@@ -59,6 +59,10 @@ void http2_impl::stop() { return server_->stop(); }
void
http2_impl
::
join
()
{
return
server_
->
join
();
}
const
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
&
http2_impl
::
get_io_services
()
const
{
return
server_
->
get_io_services
();
}
}
// namespace server
}
// namespace asio_http2
...
...
src/asio_server_http2_impl.h
View file @
ba671a84
...
...
@@ -50,6 +50,7 @@ public:
bool
handle
(
std
::
string
pattern
,
request_cb
cb
);
void
stop
();
void
join
();
const
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
&
get_io_services
()
const
;
private:
std
::
unique_ptr
<
server
>
server_
;
...
...
src/includes/nghttp2/asio_http2_server.h
View file @
ba671a84
...
...
@@ -201,6 +201,9 @@ public:
// Join on http2 server and wait for it to fully stop
void
join
();
// Get access to the io_service objects.
const
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
&
get_io_services
()
const
;
private:
std
::
unique_ptr
<
http2_impl
>
impl_
;
};
...
...
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