Skip to content

Include units TimeoutException message #135

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

Merged
merged 1 commit into from
Aug 27, 2012
Merged

Include units TimeoutException message #135

merged 1 commit into from
Aug 27, 2012

Conversation

bgruber
Copy link
Contributor

@bgruber bgruber commented Aug 22, 2012

Hey,

I was using AsyncHttpClient in a situation where the timeouts were being processed, and because of that were normalized to nanoseconds. When I saw the message on the TimeoutException, I was confused because it seemed as if the timeout I had specified (in ms) had been multiplied by 1000000. I fixed the message to include the time unit.

thanks,
/brian

rlubke added a commit that referenced this pull request Aug 27, 2012
Include units TimeoutException message
@rlubke rlubke merged commit a96602a into AsyncHttpClient:master Aug 27, 2012
cs-workco pushed a commit to cs-workco/async-http-client that referenced this pull request Apr 13, 2023
This is the continuation of the good work of @Yasumoto and @weissi in AsyncHttpClient#135

The following code adds support for NIO Transport services. When the ConnectionPool asks for a connection bootstrap it is returned a NIOClientTCPBootstrap which wraps either a NIOTSConnectionBootstrap or a ClientBootstrap depending on whether the EventLoop we are running on is NIOTSEventLoop.

If you initialize an HTTPClient with eventLoopGroupProvider set to .createNew then if you are running on iOS, macOS 10.14 or later it will provide a NIOTSEventLoopGroup instead of a EventLoopGroup.

Currently a number of tests are failing. 4 of these are related to the NIOSSLUncleanShutdown error the others all seem related to various race conditions which are being dealt with on other PRs. I have tested this code with aws-sdk-swift and it is working on both macOS and iOS.

Things look into:

The aws-sdk-swift NIOTS HTTP client had issues with on Mojave. We should check if this is the case for async-http-client as well.

Co-authored-by: Joe Smith <[email protected]>
Co-authored-by: Johannes Weiss <[email protected]>
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