Skip to content

Instantly share code, notes, and snippets.

@hamnis
Created November 18, 2012 12:03
Show Gist options
  • Save hamnis/4104828 to your computer and use it in GitHub Desktop.
Save hamnis/4104828 to your computer and use it in GitHub Desktop.
public class Main {
public static void main(String[] args) {
HTTPClientResponseResolver resolver = HTTPClientResponseResolver.createMultithreadedInstance();
HttpClient client = resolver.getClient();
HttpConnectionManagerParams params = client.getConnectionManager().getParams();
params.setDefaultMaxConnectionsPerHost(5);
params.setMaxTotalConnections(20);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment