[Libwebsockets] [libwebsockets] #43: libwebsocket_write returns -1

Trac trac at libwebsockets.org
Thu Oct 24 02:36:51 CEST 2013


#43: libwebsocket_write returns -1
------------------------------------+-----------------
 Reporter:  jdnevarez               |      Owner:
     Type:  task                    |     Status:  new
 Priority:  major                   |  Milestone:
Component:  libwebsocket test apps  |    Version:
 Keywords:  write                   |
------------------------------------+-----------------
 libwebsocket_write returns -1 on the six package send by the client. all
 of 1280 bytes. Previous 5 packages are sent fine.
 My storage is defined as
 #define MAX_PAYLOAD 2048

 struct per_session_data_tun {
         unsigned char buf[LWS_SEND_BUFFER_PRE_PADDING + MAX_PAYLOAD +
 LWS_SEND_BUFFER_POST_PADDING];
         unsigned int len;
         unsigned int index;
     unsigned char client_ipv6[19];
 };

 Please give any ideas how to debug this. Thanks

--
Ticket URL: <http://libwebsockets.org/trac/libwebsockets/ticket/43>
libwebsockets <http://libwebsockets.org>
libwebsockets C library



More information about the Libwebsockets mailing list