I've added documentation on how to detect failure in various situations to
the docs, see here:
https://github.com/akka/akka/pull/18602/files#diff-224552b667d182e130191dbcd5e4e651R206
Will be merged in soon.

Hope these docs explain what you're looking for!

On Wed, Sep 30, 2015 at 12:49 PM, Akka Team <[email protected]> wrote:

> Hi Celio,
>
> What you describe seems to have nothing to do with binding/unbinding but
> about simply detecting when an accepted connection is disconnected. The
> binding results in a Source of IncomingTcpConnection, each carrying a Flow
> which represents the read and write sides of the connection. That Flow will
> properly signal a completion/error when connections go away.
>
> -Endre
>
> On Tue, Sep 29, 2015 at 12:41 PM, Clelio De Souza <[email protected]>
> wrote:
>
>> Hi Konrad,
>>
>> The unbind is when the server decides to explicitly unbind the Tcp
>> connection, right? I don't want that. I want to monitor when the Tcp socket
>> is unbound due to a connection closed by the client or a connectivity issue.
>>
>> Cheers,
>> Leo
>>
>> On Tuesday, 29 September 2015 11:25:43 UTC+1, Konrad Malawski wrote:
>>>
>>> When you unbind you get a future that completes once unbinding has
>>> completed:
>>>
>>> ```
>>> val binding: Future[ServerBinding] =
>>>   Tcp().bind("127.0.0.1", 8888).to(Sink.ignore).run()
>>>
>>>   binding.map { b =>
>>>     b.unbind() onComplete {
>>>       case _ => // ...
>>>     }
>>>   }
>>> ```
>>>
>>> If this is missing from the docs then please open a ticket and we'll
>>> document it more explicitly.
>>>
>>> --
>>> Cheers,
>>> Konrad `ktoso` Malawski
>>> Akka <http://akka.io> @ Typesafe <http://typesafe.com>
>>>
>>> On 29 September 2015 at 12:18:57, Clelio De Souza ([email protected])
>>> wrote:
>>>
>>> Hi there,
>>>
>>> I am trying to find a way of notifying when a Tcp Socket connection is
>>> unbound on the Tcp bind Source flow (`Tcp().bind("0.0.0.0", port)`).
>>> Basically we are trying to monitor whenever an established Tcp socket bound
>>> connection is disconnected.
>>>
>>> I couldn't find an out-of-box/standard way of doing that. Any
>>> suggestions? Most appreciate it!
>>>
>>> Regards,
>>> Leo
>>> --
>>> >>>>>>>>>> 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 http://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 http://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Akka Team
> Typesafe - Reactive apps on the JVM
> Blog: letitcrash.com
> Twitter: @akkateam
>
> --
> >>>>>>>>>> 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 http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Cheers,
Konrad 'ktoso' Malawski
Akka <http://akka.io/> @ Typesafe <http://typesafe.com/>

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

Reply via email to