Skip to content

NettyAsyncHttpProvider doesn't check if USE_BLOCKING_IO is true or false, only if not null #164

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

Closed
bric3 opened this issue Nov 21, 2012 · 4 comments
Assignees
Milestone

Comments

@bric3
Copy link

bric3 commented Nov 21, 2012

At the following line

https://github.com/AsyncHttpClient/async-http-client/blob/master/providers/netty/src/main/java/com/ning/http/client/providers/netty/NettyAsyncHttpProvider.java#L191

if (asyncHttpProviderConfig.getProperty(NettyAsyncHttpProviderConfig.USE_BLOCKING_IO) != null) {
  socketChannelFactory = new OioClientSocketChannelFactory(config.executorService());
} else {

The provider should check if the value is true or false, not if the value is present.

@slandelle
Copy link
Contributor

@jfarcand Mind if I break NettyAsyncHttpProviderConfig in master/A.8 and make it a proper POJO instead of a non type safe wrapper on top of Map<String, Object>?

@bric3
Copy link
Author

bric3 commented Mar 11, 2013

I second that change, but other providers should be changed the same way.

@jfarcand
Copy link
Contributor

+1

@ghost ghost assigned slandelle Mar 11, 2013
@slandelle
Copy link
Contributor

Grizzly provider use a enum, no sure if it's worth breaking it to make it consistent.
By the way, I passed the properties to all bootstraps in configureNetty.

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

No branches or pull requests

3 participants