Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pistache
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
pistache
Commits
8ef8328b
Commit
8ef8328b
authored
Feb 05, 2016
by
octal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed uninitialized variable
parent
b1a2e8d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
main.cc
main.cc
+2
-2
src/common/io.cc
src/common/io.cc
+1
-0
No files found.
main.cc
View file @
8ef8328b
...
@@ -45,7 +45,7 @@ class MyHandler : public Net::Http::Handler {
...
@@ -45,7 +45,7 @@ class MyHandler : public Net::Http::Handler {
using
namespace
Net
::
Http
;
using
namespace
Net
::
Http
;
response
.
timeoutAfter
(
std
::
chrono
::
seconds
(
2
));
//
response.timeoutAfter(std::chrono::seconds(2));
//timeout.arm(std::chrono::seconds(2));
//timeout.arm(std::chrono::seconds(2));
auto
query
=
req
.
query
();
auto
query
=
req
.
query
();
...
@@ -323,7 +323,7 @@ int main(int argc, char *argv[]) {
...
@@ -323,7 +323,7 @@ int main(int argc, char *argv[]) {
LoadMonitor
monitor
(
server
);
LoadMonitor
monitor
(
server
);
monitor
.
setInterval
(
std
::
chrono
::
seconds
(
1
));
monitor
.
setInterval
(
std
::
chrono
::
seconds
(
1
));
//
monitor.start();
monitor
.
start
();
server
->
serve
();
server
->
serve
();
...
...
src/common/io.cc
View file @
8ef8328b
...
@@ -48,6 +48,7 @@ Service::init(const std::shared_ptr<Handler>& handler) {
...
@@ -48,6 +48,7 @@ Service::init(const std::shared_ptr<Handler>& handler) {
handler_
->
io_
=
this
;
handler_
->
io_
=
this
;
handler_
->
registerPoller
(
poller
);
handler_
->
registerPoller
(
poller
);
shutdown_
.
store
(
false
);
}
}
void
void
...
...
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