[Libwebsockets] Unable to Connect

prelag at yahoo.com prelag at yahoo.com
Tue Aug 4 23:07:28 CEST 2020


Hello,

All of the sudden, I am unable to connect to a web socket server.  Here is the log output.  Any ideas?  I have no idea what could have happened.

192.168.0.55: Aug 4 20:47:10 WebSock[723]: lws_header_table_attach: wsi 0xb7a95dd8: ah (nil) (tsi 0, count = 0) in

192.168.0.55: Aug  4 20:47:10 WebSock[723]: _realloc: size 952: ah struct
192.168.0.55: Aug  4 20:47:10 WebSock[723]: _realloc: size 4096: ah data
192.168.0.55: Aug  4 20:47:10 WebSock[723]: _lws_create_ah: created ah 0xb7a96140 (size 4096): pool length 1
192.168.0.55: Aug  4 20:47:10 WebSock[723]: lws_header_table_attach: did attach wsi 0xb7a95dd8: ah 0xb7a96140: count 1 (on exit)
192.168.0.55: Aug  4 20:47:10 WebSock[723]: __lws_set_timeout: 0xb7a95dd8: 10 secs, reason 25
192.168.0.55: Aug  4 20:47:10 WebSock[723]: lws_http_client_connect_via_info2: 0xb7a95dd8 (stash 0xb7a96088)
192.168.0.55: Aug  4 20:47:10 WebSock[723]: lws_client_connect_2_dnsreq: new conn on no pipeline flag
192.168.0.55: Aug  4 20:47:10 WebSock[723]: _realloc: size 35: strdup
192.168.0.55: Aug  4 20:47:10 WebSock[723]: lwsi_set_state(0xb7a95dd8, 0x10000201)
192.168.0.55: Aug  4 20:47:10 WebSock[723]: lws_client_connect_2_dnsreq: 0xb7a95dd8: lookup pgc.bridgepaynetsecuretest.com:443
192.168.0.55: Aug  4 20:47:11 WebSock[723]: lws_getaddrinfo46: getaddrinfo 'pgc.bridgepaynetsecuretest.com' says 0
192.168.0.55: Aug  4 20:47:11 WebSock[723]: lws_client_connect_3_connect: result 0xb7a99790 result->ai_next (nil)
192.168.0.55: Aug  4 20:47:11 WebSock[723]: lws_client_connect_3_connect: pgc.bridgepaynetsecuretest.com ipv4 192.84.6.57
192.168.0.55: Aug  4 20:47:11 WebSock[723]: lws_client_connect_3_connect: 0xb7a95dd8: WAITING_CONNECT
192.168.0.55: Aug  4 20:47:11 WebSock[723]: lwsi_set_state(0xb7a95dd8, 0x10000202)
192.168.0.55: Aug  4 20:47:11 WebSock[723]: __insert_wsi_socket_into_fds: 0xb7a95dd8: tsi=0, sock=18, pos-in-fds=1
192.168.0.55: Aug  4 20:47:11 WebSock[723]: _lws_change_pollfd: wsi 0xb7a95dd8: fd 18 events 1 -> 1
192.168.0.55: Aug  4 20:47:11 WebSock[723]: __lws_set_timeout: 0xb7a95dd8: 20 secs, reason 2
192.168.0.55: Aug  4 20:47:11 WebSock[723]: lws_client_connect_3_connect: connect says errno: 115
192.168.0.55: Aug  4 20:47:11 WebSock[723]: _lws_change_pollfd: wsi 0xb7a95dd8: fd 18 events 1 -> 5
192.168.0.55: Aug  4 20:47:11 WebSock[723]: lws_client_connect_via_info: wsi 0xb7a95dd8: adoption cb 19 to h1 lws-minimal-client-echo
192.168.0.55: Aug  4 20:47:23 WebSock[723]: _lws_state_transition: system: changed 5 'TIME_VALID' -> 6 'POLICY_VALID'
192.168.0.55: Aug  4 20:47:23 WebSock[723]: _lws_state_transition: system: changed 6 'POLICY_VALID' -> 7 'REGISTERED'
192.168.0.55: Aug  4 20:47:23 WebSock[723]: _lws_state_transition: system: changed 7 'REGISTERED' -> 8 'AUTH1'
192.168.0.55: Aug  4 20:47:23 WebSock[723]: _lws_state_transition: system: changed 8 'AUTH1' -> 9 'AUTH2'
192.168.0.55: Aug  4 20:47:23 WebSock[723]: _lws_state_transition: system: changed 9 'AUTH2' -> 10 'OPERATIONAL'
192.168.0.55: Aug  4 20:47:23 WebSock[723]: lws_state_transition_steps: CONTEXT_CREATED -> OPERATIONAL
192.168.0.55: Aug  4 20:47:25 WebSock[723]: _lws_change_pollfd: wsi 0xb7a95dd8: fd 18 events 5 -> 1
192.168.0.55: Aug  4 20:47:25 WebSock[723]: lws_client_connect_3_connect: getsockopt fd 18 says err 104
192.168.0.55: Aug  4 20:47:25 WebSock[723]: lws_client_connect_3_connect: getsockopt check: conn fail: errno 115
192.168.0.55: Aug  4 20:47:29 WebSock[723]: CLIENT_CONNECTION_ERROR: Unable to connect
192.168.0.55: Aug  4 20:47:29 WebSock[723]: CLIENT_CONNECTION_ERROR: Unable to connect
192.168.0.55: Aug  4 20:47:29 WebSock[723]: _realloc: size 48: timed_vh
192.168.0.55: Aug  4 20:47:29 WebSock[723]: __lws_close_free_wsi: 0xb7a95dd8: caller: client_connect2
192.168.0.55: Aug  4 20:47:29 WebSock[723]: __lws_close_free_wsi: real just_kill_connection: 0xb7a95dd8 (sockfd -1)
192.168.0.55: Aug  4 20:47:29 WebSock[723]: lwsi_set_state(0xb7a95dd8, 0x10000020)

Thanks

Paul R.


More information about the Libwebsockets mailing list