[Libwebsockets] lws_remaining_packet_payload not return zero

techi eth techieth at gmail.com
Tue Nov 8 07:25:18 CET 2016


Remaining 650 coming all the times.I was expecting it comes only once &
next time when i call this api it will return's me zero so that i can
decide fragmented packet is over.

I am testing with server.

Thanks for suggestion of moving to new commit.I will check & update
accordingly.

-Techi

On Tue, Nov 8, 2016 at 11:49 AM, Andy Green <andy at warmcat.com> wrote:

> On Tue, 2016-11-08 at 10:35 +0530, techi eth wrote:
> > Hi,
> >
> > Is  lws_remaining_packet_payload work as mentioned in document ?
> >
> > I am facing issue while using this api.I was trying to send 1650 byte
> > data & i have configured rx buffer to 1000.On Receive i was getting
> > len=1000 after that if i call lws_remaining_packet_payload then once
> > i am getting 650 & getting forever.
>
> The remaining 650 never comes?  Or it comes
> and lws_remaining_packet_payload still says 650 more to come?
>
> Is it client or server?
>
> > I am on below commit.
> > Uri = "git://github.com/warmcat/libwebsockets.git;protocol=https"
> > Commit = "c15714f35a0e059ae33c1959f4059967e04b71d2"
>
> That's just behind an important security fix
> at a496700b3a67ccb494385bfb22ebab0027af6e60... you should update (but I
> don't think it will affect lws_remaining_packet_payload).
>
> -Andy
>
> _______________________________________________
> > Libwebsockets mailing list
> > Libwebsockets at ml.libwebsockets.org
> > http://libwebsockets.org/mailman/listinfo/libwebsockets
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20161108/28b2a2e3/attachment-0001.html>


More information about the Libwebsockets mailing list