[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:

https://libwebsockets.org/pipermail/libwebsockets/2017-October/003524.html

Would it make sense to modify the advice in "Closing connections from the user side"
(https://libwebsockets.org/lws-api-doc-master/html/md_READMEs_README_8coding.html#closing)
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