Asio SSL client timeout/error-handling patch. Make POSIX signal-friendly interface.#356
Open
officer-34762 wants to merge 2 commits into
Open
Asio SSL client timeout/error-handling patch. Make POSIX signal-friendly interface.#356officer-34762 wants to merge 2 commits into
officer-34762 wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi. First of all, I updated ssl client using boost asio to handle timeout of read-write/connect more carefully also throwing detailed errors. Second,
launch_oncefunction was created to customize limit/timeout values and allowed notify types array without new object creation. Instead of creatingTgLongPollobject every time so as to change values of argumentsstartfunction in an every cycle of a loop i can make launch_once call with another values.Next you got like this in your samples:
I have to get special processing on signal fired so i can't just do what i would want and call
exit(0)because it's recommended to use async thread safe only functions in such handlers. And more,long_poll.start()might freeze if i get unstable network connection and an application receive a signal. This is my walkthrough of how I achieved this:I tried to save support of Asio library from Boost 1.65.1 version. Though i didn't check working it!