[Libwebsockets] libwebsocket close notification.
scalfee at mqidentity.com
Mon Aug 4 23:31:11 CEST 2014
Sorry to keep bothering you. This time on being assured by you I should get the callback I looked at the code and noticed the logging level was lwsl_info so I was not seeing it. when I bumped it to lwsl_notice I am getting the callback.
So no problem on the libwebsocket stuff so far at all. Good Job.
From: Andy Green <extracats at googlemail.com> on behalf of Andy Green <andy at warmcat.com>
Sent: Monday, August 04, 2014 1:47 PM
To: Steve Calfee; libwebsockets at ml.libwebsockets.org
Subject: Re: [Libwebsockets] libwebsocket close notification.
On 5 August 2014 01:41:33 GMT+08:00, Steve Calfee <scalfee at mqidentity.com> wrote:
>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?
>Libwebsockets mailing list
>Libwebsockets at ml.libwebsockets.org
More information about the Libwebsockets