[Libwebsockets] [libwebsockets] #107: Missing LWS_CALLBACK_CLOSED on the the server

Trac trac at libwebsockets.org
Sat Apr 11 03:11:37 CEST 2015

#107: Missing LWS_CALLBACK_CLOSED on the the server
  Reporter:  stephang               |      Owner:
      Type:  defect                 |     Status:  new
  Priority:  major                  |  Milestone:
 Component:  libwebsockets library  |    Version:
Resolution:                         |   Keywords:

Comment (by stephang):

 I am talking about the following scenario:
 - The client is successfully connected to the server (I get a
 LWS_CALLBACK_ESTABLISHED on the server/client)
 - Then I close the client (stop service loop and call
 - However, I do NOT get a LWS_CALLBACK_CLOSED on the server

 Only if I send any data from the server to the client before closing the
 client I will get the LWS_CALLBACK_CLOSED on the server.

 Additional testing showed that this problem seems to occur with the
 libwebsockets client only. I could not reproduce it with a web browser
 (Firefox or Chrome).

Ticket URL: <http://libwebsockets.org/trac/libwebsockets/ticket/107#comment:2>
libwebsockets <http://libwebsockets.org>
libwebsockets C library

More information about the Libwebsockets mailing list