[Libwebsockets] Closing client connection
techieth at gmail.com
Tue Jul 12 19:17:29 CEST 2016
I am facing issue when client close without informing server (Power
Off/Application Crash/Network Down).In that case server side still have
that connection & i think that connection get broken on ping/pong time.
What i am thinking it will be better solution if we have close connection
API so that server application can decide if they want to really close
I was just looking Client/Server support from .Net framework & found they
will provide close interface to handle this cases.
On Tue, Jul 12, 2016 at 12:26 PM, Andy Green <andy at warmcat.com> wrote:
> On Tue, 2016-07-12 at 11:27 +0530, techi eth wrote:
> > Is their any API for closing client connection by server ?
> > As of now i am returning non negative value from callback for closing
> > but some cases where server needs to close client connection without
> > callback.
> Can you explain more about those cases?
> It's that lws is just doing serving only, and decides he must drop what
> was an incoming client connection? All client connections?
> > _______________________________________________
> > Libwebsockets mailing list
> > Libwebsockets at ml.libwebsockets.org
> > http://libwebsockets.org/mailman/listinfo/libwebsockets
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libwebsockets