Skip to content
New issue

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

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

Already on GitHub? # to your account

Close sockets gracefully #1445

Merged

Conversation

cryptocode
Copy link
Contributor

The docs recommend shutdown before close [1] and most asio servers I've seen do this (the IPC patch does the same). Should evict pending io ops immediately/flush buffers properly on all platforms before closing.

[1] https://www.boost.org/doc/libs/1_66_0/doc/html/boost_asio/reference/basic_stream_socket/close/overload2.html

@cryptocode cryptocode added the experiment This item indicates that the change is an experiment and is not fully baked label Dec 13, 2018
@cryptocode cryptocode force-pushed the improvement/graceful-socket-shutdown branch from de44c8d to 80fea28 Compare December 13, 2018 00:35
@cryptocode cryptocode added quality improvements This item indicates the need for or supplies changes that improve maintainability and removed experiment This item indicates that the change is an experiment and is not fully baked labels Dec 13, 2018
@argakiig argakiig self-requested a review December 13, 2018 01:09
@rkeene rkeene added this to the V18.0 milestone Dec 13, 2018
@rkeene rkeene merged commit 15c95a3 into nanocurrency:master Dec 14, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
quality improvements This item indicates the need for or supplies changes that improve maintainability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants