m_data_queue.push(std::make_pair(trait,std::move(data)));//this data is already PRE_ PADDEDlws_callback_on_writable(m_client_wsi);//trying to invoke the callback}//staticintevent_callback(structlws*wsi,enumlws_callback_reasons reason,void*user,void*in,size_tlen) {switch(reason) {/...
lws_latency(context, wsi,"SSL_connect hs", n, n >0);switch(n) {caseLWS_SSL_CAPABLE_ERROR:return-1;caseLWS_SSL_CAPABLE_DONE:return1;/* connected */caseLWS_SSL_CAPABLE_MORE_SERVICE_WRITE:lws_callback_on_writable(wsi);/* fallthru */caseLWS_SSL_CAPABLE_MORE_SERVICE_READ: lwsi_set_s...
with main thread using the default poll() event loop, and four other thread(four wsi) call lws_callback_on_writable。 sometimes, it get LWS_CALLBACK_SERVER_WRITEABLE callback(to send data) after the next packet coming(for several seconds)。 how can I send data as soon as possible? Memb...
lws_latency(context, wsi,"SSL_connect hs", n, n >0);switch(n) {caseLWS_SSL_CAPABLE_ERROR:return-1;caseLWS_SSL_CAPABLE_DONE:return1;/* connected */caseLWS_SSL_CAPABLE_MORE_SERVICE_WRITE:lws_callback_on_writable(wsi);/* fallthru */caseLWS_SSL_CAPABLE_MORE_SERVICE_READ: lwsi_set_s...
I wrote a multi-threaded program that integrates libuv (1.8.0) and libwebsockets (2.4.0) and runs fine on windows, but this portability between lws_callback_on_writable () and LWS_CALLBACK_SERVER_WRITEABLE was found on Linux (Ubuntu 12.04) Poor more than 800 milliseconds. The effect of ...