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

add client size close for #712#713

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

Conversation

@chenzhaoyu
Copy link

@chenzhaoyuchenzhaoyu commentedDec 1, 2016
edited
Loading

I attempt tofix#712 , if response body is completed, client side will close connection.

Comments are welcome!

regards,
chenzhaoyu

this->part_begin;
typename protocol_base::buffer_type::const_iterator end = begin;
std::advance(end, remainder);
string_typebody_string(begin, end);
Copy link
Member

Choose a reason for hiding this comment

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

Do you even need this copy of the string? Why not use the range instead?

}
}

inlineboolcheck_parse_body_complete(string_type& body_string)
Copy link
Member

Choose a reason for hiding this comment

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

It looks like you could avoid using strings here, and just deal with ranges of iterators.

@chenzhaoyuchenzhaoyuforce-pushed theadd-active-client-side-close branch from4fc7dda tob950ea5CompareDecember 1, 2016 08:23
@chenzhaoyu
Copy link
Author

@deanberris , thanks for your comments, I have move body check logic to async_protocol_handler.hpp and no extra body buffer be copied now, please check, thanks~

Copy link
Member

@deanberrisdeanberris left a comment

Choose a reason for hiding this comment

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

LGTM

@deanberrisdeanberris merged commit3183577 intocpp-netlib:masterDec 1, 2016
@chenzhaoyu
Copy link
Author

Hi,@deanberris , can you merge those commits from master into 0.13-release branch?

cnagune added a commit to cnagune/cpp-netlib that referenced this pull requestJul 3, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@deanberrisdeanberrisdeanberris approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Add the "Connection: close" header to the request, but Stuck at fetching response body

2 participants

@chenzhaoyu@deanberris

[8]ページ先頭

©2009-2025 Movatter.jp