Spray 1.3.x
Akka 2.3.x
Using the high level spray-client api (http://spray.io/documentation/1.2.3/spray-client/) from an instantiated 'RestClient' type class to make posts against mandrills api.
Post("https://mandrillapp.com/api/1.0/messages/send.json", myJson)
Our email stopped working, so I went digging through our logs and came across:
[WARN 05:43:47.734UTC] ([s.can.client.HttpClientConnection | akka://Foo/user/IO-HTTP/group-0/20 | Foo-akka.actor.default-dispatcher-8] After which we continue getting messages like [WARN 05:43:47.748UTC] ([s.can.client.HttpHostConnectionSlot | akka://Foo/user/IO-HTTP/host-connector-12/0 | Foo-akka.actor.default-dispatcher-8] until I restarted the server.
|
I assume at the time the first hit to mandrills api happened it was inacessible for some reason, but then it seems like from that point on it just remained dead and never tried to access it again? Does that sound like what you guys would expect of the behaviour? And if so, what would be the 'solution' to make it retry the connection part when we make a request if it failed initially?
Been digging around and can't seem to come up with anything aside from getting deeper into the host level API and managing it all manually myself, or reinstantiating the restclient everytime we want to make a call (it's basically instantiated once in this Actor, and keeps getting used until that actor dies/is restarted/etc)
Any help would be hugely appreciated!
Cheers :)
--
You received this message because you are subscribed to the Google Groups "spray.io User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spray-user+...@googlegroups.com.
Visit this group at http://groups.google.com/group/spray-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/spray-user/15ace804-58be-4150-a507-fac42680e0fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.