[Libwebsockets] [libwebsockets] #40: Blocking client connection

Trac trac at libwebsockets.org
Fri Sep 20 09:59:50 CEST 2013


#40: Blocking client connection
------------------------------------+-----------------
  Reporter:  JM                     |      Owner:
      Type:  defect                 |     Status:  new
  Priority:  major                  |  Milestone:
 Component:  libwebsockets library  |    Version:
Resolution:                         |   Keywords:
------------------------------------+-----------------

Comment (by JM):

 The client is stalling in the connect() call line 67 of client-handshake.c
 The socket isn't yet in non-blocking mode.

 SSL isn't activated.

 The network configuration of the machine running libwebsocket-test-client:

 {{{
 IP addr : 192.168.1.140
 mask: 255.255.255.0
 Gateway: 192.168.1.1
 }}}


 The command line: libwebsockets-test-client 192.168.4.196 -d 255

 The server is intentionally not reachable (no route).
 This is the worse case. If the server is in the same sub-network but not
 reachable, the stall lasts 3 seconds.

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



More information about the Libwebsockets mailing list