Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sendTimeout and receiveTimeout in Http2Adapter #1942

Merged
merged 4 commits into from
Aug 25, 2023
Merged

add sendTimeout and receiveTimeout in Http2Adapter #1942

merged 4 commits into from
Aug 25, 2023

Conversation

sunhapper
Copy link
Contributor

Add send time out and receive time for http2

New Pull Request Checklist

  • I have read the Documentation
  • I have searched for a similar pull request in the project and found none
  • I have updated this branch with the latest main branch to avoid conflicts (via merge from master or rebase)
  • I have added the required tests to prove the fix/feature I'm adding
  • I have updated the documentation (if necessary)
  • I have run the tests without failures
  • I have updated the CHANGELOG.md in the corresponding package

Additional context and info (if any)

Http2Adapter only implements connect timeout,the RequestOptions.sendTimeout and RequestOptions.receiveTimeout not work.

@sunhapper sunhapper requested a review from a team as a code owner August 19, 2023 13:36
plugins/http2_adapter/lib/src/http2_adapter.dart Outdated Show resolved Hide resolved
plugins/http2_adapter/test/mock/flutter.png Outdated Show resolved Hide resolved
plugins/http2_adapter/test/http2_test.dart Outdated Show resolved Hide resolved
plugins/http2_adapter/CHANGELOG.md Outdated Show resolved Hide resolved
plugins/http2_adapter/test/http2_test.dart Outdated Show resolved Hide resolved
Comment on lines +106 to +108
} else {
await requestStreamFuture;
}
Copy link
Member

Choose a reason for hiding this comment

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

TBH I'd prefer how the IO adapter wrote, future = future.timeout, etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I prefer final variable rather than reassigning it

sunhapper and others added 2 commits August 23, 2023 21:09
Co-authored-by: Alex Li <github@alexv525.com>
Signed-off-by: sunhapper <9249052+sunhapper@users.noreply.github.com>
Copy link
Member

@AlexV525 AlexV525 left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the contribution again.

@AlexV525 AlexV525 added this pull request to the merge queue Aug 25, 2023
Merged via the queue into cfug:main with commit f4d0052 Aug 25, 2023
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants