Hi John,


On Wed, Nov 25, 2015 at 12:07 PM, <[email protected]> wrote:

> I am using the future based variant
> http://doc.akka.io/docs/akka-stream-and-http-experimental/2.0-M1/java/http/client-side/request-level.html#future-based-variant
> Somethimes I get a "max-open-requests" exception. I think its a deployment
> issue. In such a case I would just want to restart the pool without
> restarting the actor system.
> Is this possible?
>

Shouldn't those requests time out eventually and free up slots? Have you
tried a host level connection pool?
http://doc.akka.io/docs/akka-stream-and-http-experimental/2.0-M1/scala/http/client-side/host-level.html#requesting-a-host-connection-pool

See the section about restarting here:
http://doc.akka.io/docs/akka-stream-and-http-experimental/2.0-M1/scala/http/client-side/host-level.html#Pool_Shutdown

I think you can just call shutdown() on the pool, and then when the future
finishes new requests to the pool will create a new one.

-Endre


> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Akka Team
Typesafe - Reactive apps on the JVM
Blog: letitcrash.com
Twitter: @akkateam

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to