[Libwebsockets] lws_rx_flow_control problem

Per Bothner per at bothner.com
Wed Oct 11 00:52:00 CEST 2017


On 10/10/2017 03:35 PM, Andy Green wrote:

> I just pushed an updated h2 patch where lws figures out for itself if it should do the call.  Basically in lws_rx_flow_control() it sets a bit on the wsi saying it will do the call to _lws_rx_flow_control() for that wsi, and clears the bit afterwards.  If that bit isn't set on the wsi, lws_rx_flow_control() does the call to _lws_rx_flow_control() itself.
> 
> That should cover everything without needing to add the flag in user code.

Not quite: If libwebsockets is 2.3 or older, then I never want to call
lws_rx_flow_control(pty_wsi, 0) at all, since there is no way to re-enable flow.

It may reasonable to use LWS_LIBRARY_VERSION_NUMBER, assuming you
update it appropriately.
-- 
	--Per Bothner
per at bothner.com   http://per.bothner.com/



More information about the Libwebsockets mailing list