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

fix http client timeout#763

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

Hi, in our usage of cpp-netlib(version cpp-netlib-0.12.0-final), we meet this issue:
sometimes, http request is finished, but http client destruct will be blocked until client timeout.
I think this code has a issue:
If http callback thread run before timer_.async_wait(), timer will not been cancel.

I try to fix it, WDYT?

@LoopinFool
Copy link

This change seems correct, and "looks good to me". If it gets merged, please consider also merging into other branches (0.12-release that chenzhaoyu is probably using, and 0.13-release that I am using). Thanks.

@anonimal
Copy link

@deanberris@glynos ?

@deanberris
Copy link
Member

LGTM -- apologies for the delay here, been too busy with other things. :(

@deanberrisdeanberris merged commit216613c intocpp-netlib:masterOct 17, 2017
@maingoh
Copy link

Hello,

I have very rarely some connections timeout with images on google storage. I am not sure it is an issue on google side so I was wondering what this PR does and if it is possible to merge it to 0.13 branch ?

Thank you,

@deanberris
Copy link
Member

@maingoh -- Can you test to see whether this, when applied to 0.13-release fixes the issue for you? If so I'd be happy to merge a PR that cherry-picks this into 0.13-release. An -rc1 should be forthcoming later in the week, and it'd be great to have this fix in the next release candidate.

maingoh pushed a commit to maingoh/cpp-netlib that referenced this pull requestNov 21, 2017
@maingoh
Copy link

I will try to test it, not sure I can give a feedback this week though.. Also I read better what the PR does and I don't think it is related to my issue, I don't destruct the client.
My issue is :

  • I have many images to download from google storage (10k).
  • I have approximately 3 simultaneous requests.
  • I get ~10 requests that timed out

I am not sure this is normal or not

maingoh pushed a commit to maingoh/cpp-netlib that referenced this pull requestNov 21, 2017
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.

5 participants
@chenzhaoyu@LoopinFool@anonimal@deanberris@maingoh

[8]ページ先頭

©2009-2025 Movatter.jp