[Libwebsockets] [libwebsockets] #21: api-doc incomplete

Trac trac at libwebsockets.org
Tue Feb 26 14:19:02 CET 2013


#21: api-doc incomplete
-------------------------+-------------------------------------------------
  Reporter:  巫书轶      |      Owner:  libwebsockets-api-doc
      Type:  defect      |     Status:  new
  Priority:  major       |  Milestone:
 Component:              |    Version:
  libwebsocket test      |   Keywords:
  apps                   |  libwebsocket_close_and_free_session()
Resolution:              |
-------------------------+-------------------------------------------------

Comment (by agreen):

 In the current git for the library, libwebsocket_close_and_free_session()
 has been removed from the public api.

 Instead, if you return -1 from the user callback, the library will
 understand it should call libwebsocket_close_and_free_session() for you.

 Calling libwebsocket_close_and_free_session() from outside the callback
 made trouble, because it frees the struct libwebsocket while the library
 may still hold pointers.

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



More information about the Libwebsockets mailing list