[Libwebsockets] [libwebsockets] #111: Assertion `0' problem

Trac trac at libwebsockets.org
Fri Apr 17 01:17:16 CEST 2015


#111: Assertion `0' problem
------------------------------------+--------------------
  Reporter:  marcin                 |      Owner:  marcin
      Type:  defect                 |     Status:  new
  Priority:  major                  |  Milestone:
 Component:  libwebsockets library  |    Version:
Resolution:                         |   Keywords:
------------------------------------+--------------------

Comment (by marcin):

 I think I know where is the problem. When package is sent by
 libwebsocket_write function after 100ms pointer to the package is deleted
 and next libwebsocket_callback_on_writable function is called I don't get
 next LWS_CALLBACK_SERVER_WRITEABLE callback because previous package has
 not sent yet.

 Maybe here is the problem? How I can know when package was sent and I can
 free the momory of package?

 When I wait longer 1 second client receives the message and everything
 works but I know that it is not solution because sometimes maybe client
 has to wait more than 1 second and then asset will fire again...

--
Ticket URL: <http://libwebsockets.org/trac/libwebsockets/ticket/111#comment:4>
libwebsockets <http://libwebsockets.org>
libwebsockets C library



More information about the Libwebsockets mailing list