[Libwebsockets] lws_remaining_packet_payload not return zero

Andy Green andy at warmcat.com
Tue Nov 8 07:19:43 CET 2016


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



More information about the Libwebsockets mailing list