On Sat, 13 Dec 2014 20:27:39 GMT, Lemonfiend wrote:

I have to make thousands of connections to a server that isn't mine.
Is it necessary to do this in chunks, or does vibe do this internally?

Ie. Does vibe grow its connectionpool to a thousand if I call doBatch?
Or, is doBatchChunked a better approach?

Currently, the connection pool will create as many connections as necessary to treat the amount of simultaneous requests. There's at most 16 peers that may be kept alive through connection pools.

So, while you can work around this using the "doBatchedChunked" method, the right thing to do is add a few settings into HTTPClient and ConnectionPool. What would be necessary is a raw TCP timeout, and a maximum concurrent connections setting. This is best implemented in the existing HTTPClientSettings object, and also through constructor arguments for the ConnectionPool settings.