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: send CONNECT first when recovering a HTTPS request#2077

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

Conversation

@jasonjoo2010
Copy link
Contributor

Issue description

AHC has retry mechanism enabled with up to 5 attempts by default. But the initial CONNECT is omitted when recovering the HTTPS requests with IO exceptions. This MR fixes this issue and guarantees the proper workflow in retries.

It's related to#2071 and fixes a different failing case.

How the issue is fixed

  • For any new connections, make sure there is an initial CONNECT for WebSocket/HTTPS request.
  • For the condition check that a CONNECT has been sent, make sure the connection the current future attaches is reusable/active.

Unit test

IOException has various reasons but in the unit test, we emulate it by closing the connection after receiving the CONNECT request. The internal recovery process will retry another 4 times, and through an IOException eventually.

Signed-off-by: Jason Joo <hblzxsj@gmail.com>
@hyperxprohyperxpro merged commita9a3a7e intoAsyncHttpClient:mainMar 14, 2025
3 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@hyperxprohyperxprohyperxpro 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.

2 participants

@jasonjoo2010@hyperxpro

[8]ページ先頭

©2009-2025 Movatter.jp