Re: Possibility of using non-blocking calls for connection pools?

2012-01-22 Thread Dvora
Hi, I'm running into similar problems, have you find a way to solve/workaround the issue? Thanks. dcheckoway wrote: Hello, I have an app that needs to make concurrent HTTP requests to a web service using persistent (keepalive) connections. I'm using ThreadSafeClientConnManager. I

Re: Possibility of using non-blocking calls for connection pools?

2012-01-22 Thread Dan Checkoway
I looked into rolling my own connection manager, but (a) I bumped into a whole bunch of deprecated classes, and then (b) when trying to work it in with the latest code on trunk, I bumped into a stack full of classes that rely on synchronization and locking. I shelved the project for now, but at

Re: Possibility of using non-blocking calls for connection pools?

2012-01-22 Thread Dvora
Holy crap, I was hoping someone will do the black work for me :-), and now I see it's indeed black... Anyway, thanks. dcheckoway wrote: I looked into rolling my own connection manager, but (a) I bumped into a whole bunch of deprecated classes, and then (b) when trying to work it in with

Re: Possibility of using non-blocking calls for connection pools?

2012-01-07 Thread Vasile Alin
How about something like a BlockingQueue made for each route, with a per-route limit? On 7 January 2012 00:20, sebb seb...@gmail.com wrote: On 6 January 2012 22:07, Ken Krugler kkrugler_li...@transpac.com wrote: On Jan 6, 2012, at 1:01pm, Oleg Kalnichevski wrote: On Fri, 2012-01-06 at 11:06

Re: Possibility of using non-blocking calls for connection pools?

2012-01-07 Thread Oleg Kalnichevski
On Sat, 2012-01-07 at 13:19 +0200, Vasile Alin wrote: How about something like a BlockingQueue made for each route, with a per-route limit? Just one Queue instance may be not enough to contain all the state information of a per route connection pool. The best way to find it out, though, is

Re: Possibility of using non-blocking calls for connection pools?

2012-01-06 Thread Oleg Kalnichevski
On Fri, 2012-01-06 at 11:06 -0500, Dan Checkoway wrote: Hello, I have an app that needs to make concurrent HTTP requests to a web service using persistent (keepalive) connections. I'm using ThreadSafeClientConnManager. I ran into a performance bottleneck, and I believe I've pinpointed the

Re: Possibility of using non-blocking calls for connection pools?

2012-01-06 Thread Ken Krugler
On Jan 6, 2012, at 1:01pm, Oleg Kalnichevski wrote: On Fri, 2012-01-06 at 11:06 -0500, Dan Checkoway wrote: Hello, I have an app that needs to make concurrent HTTP requests to a web service using persistent (keepalive) connections. I'm using ThreadSafeClientConnManager. I ran into a

Re: Possibility of using non-blocking calls for connection pools?

2012-01-06 Thread sebb
On 6 January 2012 22:07, Ken Krugler kkrugler_li...@transpac.com wrote: On Jan 6, 2012, at 1:01pm, Oleg Kalnichevski wrote: On Fri, 2012-01-06 at 11:06 -0500, Dan Checkoway wrote: Hello, I have an app that needs to make concurrent HTTP requests to a web service using persistent (keepalive)