Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixes http::async_connection::default_error that always set error flag#567

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
deanberris merged 1 commit intocpp-netlib:0.11-develfromsnizovtsev:0.11-devel
Oct 27, 2015
Merged

Conversation

snizovtsev
Copy link

Fixes#271

http::async_conection::write(Range) pass default_error function as callback for asynchronous operation. However, this function doesn't check error_code to 0 (aka success), so async_connection::has_error() is always set after async_connection::write(Range) completition. This causes next async_connection::write(...) calls to throw even if no errors.

I am also suggest to drop boost::optional wrapper of async_connection::error_encountered variable, because boost::system::system_error already have an "empty state" - errc::success.

@deanberris
Copy link
Member

LGTM

Good catch -- thanks@snizovtsev. I like the idea of removing boost::optional from there, so please send in a pull request to fix that there (and in other places) if you don't mind.

Cheers

deanberris added a commit that referenced this pull requestOct 27, 2015
Fixes http::async_connection::default_error that always set error flag
@deanberrisdeanberris merged commit9bcbde7 intocpp-netlib:0.11-develOct 27, 2015
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@snizovtsev@deanberris

[8]ページ先頭

©2009-2025 Movatter.jp