From: Dean M. B. <mik...@gm...> - 2011-09-19 21:34:27
|
On Mon, Sep 19, 2011 at 12:09 PM, Thomas Karolski <Jim...@gm...> wrote: > Hello everybody, > > I would like to know whether it is possible to use a single async HTTP > client for more than one request. If so, is it furthermore possible to > issue a new request from the callback which is passed to the get > function? Yes you can use a single async HTTP client for more than one request. I have not tried whether it's possible to start another request from within the streaming callback handler. I would imagine it should be unless you're doing something funny. > The reason why I'm asking, is because for some reason I get thread > resource exceptions - as if the async thread were not being destroyed > after the callback has been invoked with an eof status. > > Anyone who could help me out here? > How does your code look like? Cheers -- Dean Michael Berris http://goo.gl/CKCJX |