Hello,

I move the question 
to 
https://discuss.lightbend.com/t/running-into-abruptioterminationexception-with-idletimeout-usage/311
 
and got my answer there.

Regards,

On Friday, 16 March 2018 20:06:01 UTC+1, Nicolas Phung wrote:
>
> Hello,
>
> I'm trying to do the following:
>
> Source
> .repeat(ByteString ("Hello World!"))
> .filter(e => myFilter(e))
> .idleTimeout(5 seconds)
>
> .via(Compression.gzip())
>
> .runWith(FileIO.fromPath(file))
>
>
> Since my source is running indefinitely, I put the idleTimeout after the 
> filter. I want my stream to stop and complete my stream if there's no new 
> elements after the filter within a certain amount of time. The idleTimeout 
> is running a TimeoutException as expected but before that there's a 
> AbruptIOTerminationException 
>
>
> This will result in a corrupted file and not properly closed gzip file. 
> Am I using the correct built-in stage for this or is there another stage I 
> need to be aware of ? 
>
> Regards,
>

-- 
*****************************************************************************************************
** New discussion forum: https://discuss.akka.io/ replacing akka-user 
google-group soon.
** This group will soon be put into read-only mode, and replaced by 
discuss.akka.io
** More details: https://akka.io/blog/news/2018/03/13/discuss.akka.io-announced
*****************************************************************************************************
>>>>>>>>>> 
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
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