[Libwebsockets] Code in dumb_increment receive section

jon at keyonsec.com jon at keyonsec.com
Tue May 15 16:17:42 CEST 2018


Hi Andy/all,

 

Is there any significance to the following code in the dumb_increment
receive callback?

 

      case LWS_CALLBACK_RECEIVE:

            if (len < 6)

                  break;

 

 

I'm thinking maybe you put it there to debug or protect against some
unwanted response from the client at some point. I have removed it from my
code and don't see any issues w/it but just want to be sure. Please advise.

 

Thanks, 

Jon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20180515/8b388ffc/attachment.html>


More information about the Libwebsockets mailing list