Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 298 #299

Merged
merged 2 commits into from
Jun 25, 2019
Merged

Fix 298 #299

merged 2 commits into from
Jun 25, 2019

Conversation

redboltz
Copy link
Owner

No description provided.

Removed the member variable `std::unique_ptr<socket_t> socket_` from servers and added
the local variable `std::shared_ptr<socket_t> socket`.

Removed invalid error handler call. Error handler is called when TCP
accept is failed. If the next accepting process is successfully
started, but individual socket processing is failed case, error
handler shouldn't be called.
(Maybe should be logged when logging mechanism is introduced.)
This doesn't mean immediate release.
socket_->lowest_layer(),
[this]
socket->lowest_layer(),
[this, socket]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

std::move() the socket?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah. Never mind. Parameter evaluation order problem.

@codecov-io
Copy link

Codecov Report

Merging #299 into master will increase coverage by 0.08%.
The diff coverage is 96%.

@@           Coverage Diff            @@
##           master   #299      +/-   ##
========================================
+ Coverage   84.92%    85%   +0.08%     
========================================
  Files          33     33              
  Lines        4862   4848      -14     
========================================
- Hits         4129   4121       -8     
+ Misses        733    727       -6

@redboltz redboltz merged commit b441187 into master Jun 25, 2019
@redboltz redboltz deleted the fix_298 branch June 25, 2019 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants