I forgot to mention: in my case, is streams under akka-http. So I have a WebSocket client I need gone.
On Friday, February 26, 2016 at 1:18:17 PM UTC-6, Val P wrote: > > Sorry for the confusion. it was more of a comment, not a question. I can't > post code right now (I'm on a mobile for a while) but I will attempt to > explain, based on the behavior I am seeing. This is based on the streams > version merged into Akka 2.4.2. > > I have a number of stages in my application, including a fan-in. I have a > need to close a stream immediately on some exceptional occurence. By > closing the stream, I meant I want it dead, resources freed, my client > disconnected, etc. > > When I do a completeStage() the connection is kept half open. 60 seconds > later, an inactivity exception is triggered and the connection is closed. > > By setting eagerComplete on my merge stage, the connection appears to be > closed immediately. (second parameter on a b.add(,,,.eagerComplete=true) > > Obviously, it would not be correct if you expect your connection to be > half closed (or half open, if you are an optimist) > And I actually don't remember if it's eagerComplete or eagerClose (there > was a name change sometime back, and don't remember the direction) > > Anyway, that's what I meant. Hopefully that clarifies some things, but as > I mentioned, I'm just a newbie and was throwing it out in hope of more > clarification and validation. > > > > > > On Friday, February 26, 2016 at 11:47:46 AM UTC-6, drewhk wrote: >> >> >> On Fri, Feb 26, 2016 at 6:02 PM, Val P <[email protected]> wrote: >> >>> This area kinda needs work, IMHO. However my understanding is very weak, >>> so please don't take anything I say with much weight. >>> >>> So a completeStage() seems to...er.. complete the stage, but it takes a >>> minute for the connection to be closed, when it finally times out. >>> >> >> I don't get it, what connection are you referring to? A >> >> >> >>> Setting eagerComplete = true seems to help. >>> >> >> What do you mean? Stage has no eagerComplete, TCP has halfClose. Which >> eagerComplete are you referring to? >> >> >>> >>> would be nice if we could completeStage(eagerly). >>> >> >> I don't get this. completeStage is eager, there is something you mixed up >> here. Can you provide a small snippet of what exactly not working? >> >> I feel some confusion here so I would prefer if you posted a small, >> runnable code and a description of the expectation and what happened >> instead? It would make the questions more clear. >> >> -Endre >> >> >>> >>> >>> >>> On Wednesday, February 24, 2016 at 2:23:02 PM UTC-6, Ramin Alidousti >>> wrote: >>>> >>>> Hi, >>>> >>>> I'm new to akka-stream. I have a bidiflow that has been materialized. >>>> Now in certain cases I need to terminate the stream on demand and maybe >>>> recreate it later. The way I'm doing that now is to call terminate() on >>>> the >>>> implicit system. But I was wondering if there was a more appropriate way >>>> of >>>> "stopping/terminating" the flow since the call to terminate() is too >>>> intrusive as the system is also serving other actor related >>>> functionalities. >>>> >>>> Best, >>>> Ramin >>>> >>> -- >>> >>>>>>>>>> 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. >>> >> >> -- >>>>>>>>>> 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.
