Thanks Oleg!

Will try the alternative options :)

regards
asankha

On 11/3/2021 3:08 PM, Oleg Kalnichevski wrote:


On 11/3/2021 8:52 AM, Asankha Perera wrote:
Hi All

I'm trying to use the Async client as in the example ZeroCopyHttpExchange. However, before I do the POST submission of a large payload, I need to do a HEAD and determine the resume location for a large file upload retry. But the code does not execute the second POST after the HEAD completes. I'm sure I have missed something trivial, but wasn't able to figureĀ  it out. So any help is much appreciated

Thanks

asankha


Hi Asankha

HttpAsyncClient 4.1 cannot handle requests submitted from a result callback of another request. This limitation has been resolved in HttpClient 5.x.

You need to move the second message exchange out of the callback of the first one.

Hope this helps

Oleg

--
Asankha C. Perera

SLAppForge Inc, https://slappforge.com
Aayu Technologies LLC, https://aayutechnologies.com
AdroitLogic, https://www.adroitlogic.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to