[Libwebsockets] polling for file descriptor i/o
andy at warmcat.com
Sun Mar 5 07:55:39 CET 2017
On 5 March 2017 14:50:52 GMT+08:00, Per Bothner <per at bothner.com> wrote:
>On 03/04/2017 06:34 PM, Per Bothner wrote:
>> I'm having problems getting rx flow control to work. I'll experiment
>In LWS_CALLBACK_RAW_RX_FILE I call lws_rx_flow_control(wsi, 0).,
>on the wsi corresponding to the pty fd.
>Shortly after, there is a _lws_rx_flow_control which turns off the
>In LWS_CALLBACK_SERVER_WRITEABLE, I call lws_rx_flow_control(wsi_child,
>where wsi_child is the same wsi corresponding to the pty fd.
>Shortly after, there is a _lws_rx_flow_control - but using the *parent*
>the one for LWS_CALLBACK_SERVER_WRITEABLE. Since wsi->rxflow_change_to
>is not set,
>I get a "_lws_rx_flow_control: no pending change message", and nothing
Right... this rings a distant bell. The application of the rx flow control is done after we return from the callback.
>So the POLLIN is never re-enabled.
Hum... ok. The zip file stuff seems to be working just now. I'll write some / update the documentation and push it, then look at how to do this.
Sent from my Android device with K-9 Mail. Please excuse my brevity.
More information about the Libwebsockets