[Libwebsockets] R: R: R: R: Unable to connect to the server with Android

Stefano Mora stefano.mora at newdep.com
Wed Apr 17 13:42:55 CEST 2019

Because I don't see a debug print on the wsCallback() fn on my code:

		lwsl_timestamp( LLL_USER,  timestamp, TIMESTAMP_SIZE);
		lwsl_user("%s[protocol_lws.c][wsCallback] LWS_CALLBACK_ESTABLISHED [run:%d][nCli:%d]\n", timestamp, engineData.bIsRunning, engineData.nNumeroClients);
		lwsl_user("%s[protocol_lws.c] pss=%p wsi=%p\n", timestamp, pss, wsi);

-----Messaggio originale-----
Da: Andy Green <andy at warmcat.com> 
Inviato: mercoledì 17 aprile 2019 13:22
A: Stefano Mora <stefano.mora at newdep.com>
Cc: libwebsockets at ml.libwebsockets.org
Oggetto: Re: R: R: R: [Libwebsockets] Unable to connect to the server with Android

On 17/04/2019 19:18, Stefano Mora wrote:
> I rebuilt the library starting from the scratch.
> What happened was:
> -> the app connects:
> ...
> ...

> ws established  <<<<==========
> accepted v13 connection
> lws_process_ws_upgrade2: 0x564e816bb470: dropping ah on ws upgrade

> --> The app thinks to be connected but the server is not in ESTABLISHED phase !!
> --> Time passes ..

Why do you think the ws connection is not in an ESTABLISHED state?  It really seems that it is.

> My doubt is: why the server did not enter in ESTABLISHED phase?

That doesn't seem to be the problem... maybe there is a clue in why you think it is the problem.


More information about the Libwebsockets mailing list