Hi Roland,

I realized that although I jumped into this thread, the thing I'm really 
interested in is not exactly consuming the timed out requests, it can be 
done at one time in the future. The problem is how to cancel an already 
started request after a timeout. 
I put together an example project to show what the issue is:

https://github.com/vigoo/akka-http-client-cancellation

It's of course possible that I'm just missing something, but I could not 
find a way to achieve the behavior I described on the linked project's 
README.

Regards,

vigoo


2017. május 29., hétfő 11:02:44 UTC+2 időpontban rkuhn a következőt írta:
>
> Hi Daniel & Arno,
>
> consuming  response entities needs to be done so that the connection 
> becomes reusable afterwards, i.e. to free up the resource. In this sense, 
> does it really matter how long that takes? If the connection goes idle for 
> too long, it will be closed anyway, so attaching a `Sink.ignore()` should 
> be all that is needed.
>
> Regards,
>
> Roland
>
> 29 maj 2017 kl. 10:50 skrev Daniel Vigovszky <[email protected] 
> <javascript:>>:
>
> Hi Arno,
>
> did you figure out anything about this?
>
> vigoo
>
> 2017. május 18., csütörtök 7:12:37 UTC+2 időpontban Arno Haase a 
> következőt írta:
>>
>> I am aware that response entities must always be consumed with akka-http 
>> client. 
>>
>> For (very) slow connections I find it difficult to do that reliably. 
>> Consuming the entity is asynchronous and therefore requires timeouts - 
>> but if the timeouts fire, I may be left with an entity that is only 
>> partly consumed. 
>>
>> I am probably missing something here - any help would be greatly 
>> appreciated. 
>>
>> - Arno 
>>
>
> -- 
> >>>>>>>>>> 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] <javascript:>.
> To post to this group, send email to [email protected] 
> <javascript:>.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
>>>>>>>>>>      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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to