[Libwebsockets] lws v3.0 LWS_CALLBACK_EVENT_WAIT_CANCELLED

thomas.spitz at hestia-france.com thomas.spitz at hestia-france.com
Thu Nov 22 14:15:04 CET 2018


Hello everyone,

I have just updated my app from lws v2.2 to lws 3.0. I'm not using lwsws 
but I use several vhosts to implement different API on my app.

When a client is connected to my app it is connected to the main vhost 
permanently until it disconnects through callback_mainVhost.

When It disconnects It gets the following event from the lws library : 
LWS_CALLBACK_CLOSED

My concerns is that now, with lws 3.0, as soon as a client is connected, 
It triggers the LWS_CALLBACK_EVENT_WAIT_CANCELLED event almost every 1 
to 8s.

I read that LWS_CALLBACK_EVENT_WAIT_CANCELLED is sent to every protocol 
of every vhost in response to lws_cancel_service() or 
lws_cancel_service_pt().

As far as I know, when a WS client is connecting, it should not trigger 
a lws_cancel_service() or lws_cancel_service_pt(). The only event it 
triggers is LWS_CALLBACK_CLOSED when it closes the socket...

By the way, I didn't change anything between the move from lws 2.2 to 
3.0...

Is LWS_CALLBACK_EVENT_WAIT_CANCELLED a new event? What can trigger this 
event (is it a misbehavior on the client side or a problem in the app code?

Thanks in advance for your feedbacks

Best regards,

Thomas

-- 
Hestia domotique & sécurité
	Nouveautés <https://blog.hestia-france.com> Application iOS pour Varuna 
<https://itunes.apple.com/us/developer/hestia-france/id930809780> 
Application Android pour Varuna 
<https://play.google.com/store/apps/developer?id=Hestia%20France%20S.A.S&hl=fr> 
	thomas.spitz at hestia-france.com - Tel: +33(0)6 26 87 13 93
Technique: +33(0)3 20 04 43 68
Commandes: +33(0)3 20 96 47 32
Annuaire de nos commerciaux 
<https://hestia-france.com/fr/contactez-hestia.php#nos-commerciaux>

1011, rue des Saules - Parc d'activités du Mélantois
CS8458 - 59814 Lesquin Cedex - France
blog Hestia <http://blog.hestia-france.com/> 
facebook:hestia-france-domotique 
<https://www.facebook.com/hestiadomotique> facebook:hestia.domotique 
<https://plus.google.com/116828455794840525669/posts> 
twitter:hestiaAutomatio <https://twitter.com/hestiadomotique> 
skype:hestia-france <Skype:%20hestia-france>
Hestia france S.A.S
/Fabricant de systèmes domotiques et d'alarme pour les bâtiments 
résidentiels et tertiaires
Manufacturer of Building Management System including alarm security/


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20181122/22fef74c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Hestia_domotique.png
Type: image/png
Size: 10940 bytes
Desc: not available
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20181122/22fef74c/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: news.gif
Type: image/gif
Size: 12472 bytes
Desc: not available
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20181122/22fef74c/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: telechargez-apps-iOS.png
Type: image/png
Size: 4314 bytes
Desc: not available
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20181122/22fef74c/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: telechargez-apps-android.png
Type: image/png
Size: 4820 bytes
Desc: not available
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20181122/22fef74c/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: blog.png
Type: image/png
Size: 867 bytes
Desc: not available
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20181122/22fef74c/attachment-0011.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: facebook.png
Type: image/png
Size: 709 bytes
Desc: not available
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20181122/22fef74c/attachment-0012.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: g+.png
Type: image/png
Size: 1043 bytes
Desc: not available
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20181122/22fef74c/attachment-0013.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: twitter.png
Type: image/png
Size: 811 bytes
Desc: not available
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20181122/22fef74c/attachment-0014.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: skype.png
Type: image/png
Size: 978 bytes
Desc: not available
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20181122/22fef74c/attachment-0015.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: thomas_spitz.vcf
Type: text/x-vcard
Size: 269 bytes
Desc: not available
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20181122/22fef74c/attachment-0001.vcf>


More information about the Libwebsockets mailing list