[Libwebsockets] [libwebsockets] #51: Auto-SSL

Trac trac at libwebsockets.org
Sun Dec 8 14:51:23 CET 2013


#51: Auto-SSL
------------------------------------+-----------------
  Reporter:  fxmulder               |      Owner:
      Type:  enhancement            |     Status:  new
  Priority:  minor                  |  Milestone:
 Component:  libwebsockets library  |    Version:
Resolution:                         |   Keywords:
------------------------------------+-----------------

Comment (by agreen):

 Thanks for the patch... can you explain the logic for this a bit? -->


                 n = recv(wsi->sock, context->service_buffer,
                         sizeof(context->service_buffer), MSG_PEEK);
                 if (n >= 1 && context->service_buffer[0] >= 32) {

 what's the idea about the first byte being >= ' ', how is that related to
 whether it's SSL or not?

--
Ticket URL: <http://libwebsockets.org/trac/libwebsockets/ticket/51#comment:1>
libwebsockets <http://libwebsockets.org>
libwebsockets C library



More information about the Libwebsockets mailing list