[Libwebsockets] close adopted file from the user side

Per Bothner per at bothner.com
Thu Aug 6 02:29:24 CEST 2020

On 8/5/20 4:25 PM, andy at warmcat.com wrote:
> You can also close wsi synchronously or asynchronously
> https://libwebsockets.org/git/libwebsockets/tree/include/libwebsockets/lws-timeout-timer.h#n77-101

Oops. Looks like I asked a similar question in 2017:


Would it make sense to modify the advice in "Closing connections from the user side"
to suggest using lws_set_timeout instead of lws_callback_on_writable ?

(Thanks for the quick and helpful response, as usual.)
	--Per Bothner
per at bothner.com   http://per.bothner.com/

More information about the Libwebsockets mailing list