[Libwebsockets] libwebsocket close notification.

Andy Green andy at warmcat.com
Mon Aug 4 22:47:41 CEST 2014



On 5 August 2014 01:41:33 GMT+08:00, Steve Calfee <scalfee at mqidentity.com> wrote:
>Hi,
>
>I am implementing a binary upload from browser to libwebsocket server.
>For this websoocket; I open when I want to start the upload and close
>when I am done (after receiving confirmation from the server). 
>
>I would like to just upload until done, and then know at the server to
>close the file. However I am not getting a socket callback with 
>LWS_CALLBACK_CLOSED or indeed with any callback (I printed in the
>default case too). I think I am properly closing the connection in the
>browser and I do get the onclose callback in html. Doesn't the server
>get some notification?

Yes it should.

The test client tests close by closing and reopening with a random lifetime, that works fine.

What's your browser, platform lws is running on and network setup?

-Andy

>Thanks, Steve
>_______________________________________________
>Libwebsockets mailing list
>Libwebsockets at ml.libwebsockets.org
>http://ml.libwebsockets.org/mailman/listinfo/libwebsockets




More information about the Libwebsockets mailing list