[Libwebsockets] Websockets and Windows 10

Stephen James sajames1958 at gmail.com
Tue Aug 18 20:30:40 CEST 2015


I have an application written on libwebsockets (1.3) and I just upgraded to
Windows 10 when I run the server on that system my connections do not stay
up. I get CLOSE events on my callback. I have atttached the log from the
session.

[11919948735:3381] NOTICE: Initial logging level 223
[11919948735:3381] NOTICE: Library version: 1.3 8ec7802
[11919948735:3381] NOTICE: IPV6 not compiled in
[11919948735:3381] NOTICE: libev support not compiled in
[11919948735:3381] INFO:  LWS_MAX_HEADER_LEN: 1024
[11919948735:3381] INFO:  LWS_MAX_PROTOCOLS: 5
[11919948735:3381] INFO:  SPEC_LATEST_SUPPORTED: 13
[11919948735:3381] INFO:  AWAITING_TIMEOUT: 5
[11919948735:3381] INFO:  SYSTEM_RANDOM_FILEPATH: '/dev/urandom'
[11919948735:3381] INFO:  LWS_MAX_ZLIB_CONN_BUFFER: 65536
[11919948735:3381] NOTICE:  static allocation: 4712 + (12 x 30000 fds) =
364712 bytes
[11919948735:3401] INFO:  LWS_MAX_EXTENSIONS_ACTIVE: 3
[11919948735:3401] NOTICE:  canonical_hostname = WINDOWS-HTBIBR4
[11919948735:3401] NOTICE:  per-conn mem: 176 + 2140 headers + protocol rx
buf
[11919948735:3401] INFO: insert_wsi_socket_into_fds: wsi=04D94D60,
sock=700, fds pos=0
[11919948735:3401] NOTICE:  Listening on port 2950
[11919948744:5108] DEBUG: accepted new conn  port 50751 on fd=888
[11919948744:5108] INFO: insert_wsi_socket_into_fds: wsi=01195E10,
sock=888, fds pos=1
[11919948744:5108] INFO: checking nzos
[11919948744:5108] INFO: prot match 0
[11919948744:5108] INFO: libwebsocket_ensure_user_space: 01195E10 protocol
00A4C518
[11919948744:5108] INFO: libwebsocket_ensure_user_space: 01195E10 protocol
00A4C518
[11919948744:5108] INFO: libwebsocket_ensure_user_space: 01195E10 protocol
pss 24, user_space=18493032
[11919948744:5118] INFO: Allocating RX buffer 1046
[11919948744:5118] DEBUG: libwebsocket_read: read_ok
[11919948744:5118] INFO: lws_calllback_as_writeable: 01195E10
(user=011A2E68)
[11919948744:5118] INFO: lws_calllback_as_writeable: 01195E10
(user=011A2E68)
[11919948744:5298] DEBUG: Session Socket 01195E10 (fd=888) dead
[11919948744:5298] DEBUG: Close and handled
[11919948744:5298] DEBUG: close: just_kill_connection
[11919948744:5298] INFO: remove_wsi_socket_from_fds: wsi=01195E10,
sock=888, fds pos=1
[11919948744:5298] DEBUG: calling back CLOSED
[11919948747:5735] DEBUG: accepted new conn  port 50754 on fd=888
[11919948747:5735] INFO: insert_wsi_socket_into_fds: wsi=01195E10,
sock=888, fds pos=1
[11919948747:5735] INFO: checking nzos
[11919948747:5735] INFO: prot match 0
[11919948747:5735] INFO: libwebsocket_ensure_user_space: 01195E10 protocol
00A4C518
[11919948747:5735] INFO: libwebsocket_ensure_user_space: 01195E10 protocol
00A4C518
[11919948747:5735] INFO: libwebsocket_ensure_user_space: 01195E10 protocol
pss 24, user_space=18491304
[11919948747:5745] INFO: Allocating RX buffer 1046
[11919948747:5745] DEBUG: libwebsocket_read: read_ok
[11919948747:5745] INFO: lws_calllback_as_writeable: 01195E10
(user=011A27A8)
[11919948747:5745] INFO: lws_calllback_as_writeable: 01195E10
(user=011A27A8)
[11919948747:5855] DEBUG: Session Socket 01195E10 (fd=888) dead
[11919948747:5855] DEBUG: Close and handled
[11919948747:5855] DEBUG: close: just_kill_connection
[11919948747:5855] INFO: remove_wsi_socket_from_fds: wsi=01195E10,
sock=888, fds pos=1
[11919948747:5855] DEBUG: calling back CLOSED
[11919948750:7077] DEBUG: accepted new conn  port 50765 on fd=908
[11919948750:7077] INFO: insert_wsi_socket_into_fds: wsi=01195E10,
sock=908, fds pos=1
[11919948750:7077] INFO: checking nzos
[11919948750:7077] INFO: prot match 0
[11919948750:7077] INFO: libwebsocket_ensure_user_space: 01195E10 protocol
00A4C518
[11919948750:7087] INFO: libwebsocket_ensure_user_space: 01195E10 protocol
00A4C518
[11919948750:7087] INFO: libwebsocket_ensure_user_space: 01195E10 protocol
pss 24, user_space=18491304
[11919948750:7087] INFO: Allocating RX buffer 1046
[11919948750:7087] DEBUG: libwebsocket_read: read_ok
[11919948750:7087] INFO: lws_calllback_as_writeable: 01195E10
(user=011A27A8)
[11919948750:7087] INFO: lws_calllback_as_writeable: 01195E10
(user=011A27A8)
[11919948750:7167] DEBUG: libwebsocket_read: read_ok
[11919948750:7167] INFO: lws_calllback_as_writeable: 01195E10
(user=011A27A8)
[11919948750:7187] DEBUG: libwebsocket_read: read_ok
[11919948750:7187] INFO: lws_calllback_as_writeable: 01195E10
(user=011A27A8)
[1191
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libwebsockets.org/pipermail/libwebsockets/attachments/20150818/2c5720be/attachment.html>


More information about the Libwebsockets mailing list