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]
> <javascript:>) 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] <javascript:>.
> To post to this group, send email to [email protected]
> <javascript:>.
> 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.