[Libwebsockets] latest commit breaks DomTerm's http serving

Per Bothner per at bothner.com
Thu Oct 12 02:19:20 CEST 2017


One more clue.  It looks like serving a wrong file is associated
with re-using a previous wsi. Note how who 0x64a640 is first used
for domterm-core.css, but then it is re-used for a subsequent request.

Which suggests one of two:
(1) Re-using an wsi cache entry while it is still in use.
(2) Some stale information in in the wsi cache is not cleared.

The code is sufficiently complex that I haven't gotten much further.

before lws_http_action lws_handshake_server: wsi 0x64a640: ah 0x64b760
Method: 'GET' (0), request for '/hlib/domterm-core.css' wsi:0x64a640
lws_http_serve uri:hlib/domterm-core.css wsi:0x64a640
before lws_callback_on_writable wsi:0x64a640
before lws_http_action lws_handshake_server: wsi 0x64a8b0: ah 0x64d310
Method: 'GET' (0), request for '/hlib/domterm-standard.css' wsi:0x64a8b0
lws_http_serve uri:hlib/domterm-standard.css wsi:0x64a8b0
before lws_callback_on_writable wsi:0x64a8b0
before lws_http_action lws_handshake_server: wsi 0x64ab20: ah 0x64eec0
Method: 'GET' (0), request for '/hlib/goldenlayout-base.css' wsi:0x64ab20
lws_http_serve uri:hlib/goldenlayout-base.css wsi:0x64ab20
before lws_callback_on_writable wsi:0x64ab20
before lws_http_action lws_handshake_server: wsi 0x650a70: ah 0x650ce0
Method: 'GET' (0), request for '/hlib/domterm-layout.css' wsi:0x650a70
lws_http_serve uri:hlib/domterm-layout.css wsi:0x650a70
before lws_callback_on_writable wsi:0x650a70
before lws_http_action lws_handshake_server: wsi 0x652890: ah 0x652b00
Method: 'GET' (0), request for '/hlib/domterm-default.css' wsi:0x652890
lws_http_serve uri:hlib/domterm-default.css wsi:0x652890
before lws_callback_on_writable wsi:0x652890
before lws_http_action lws_handshake_server: wsi 0x6546b0: ah 0x654920
Method: 'GET' (0), request for '/hlib/domterm-all.js' wsi:0x6546b0
lws_http_serve uri:hlib/domterm-all.js wsi:0x6546b0
before lws_callback_on_writable wsi:0x6546b0
before lws_http_action lws_handshake_server: wsi 0x64a640: ah 0x64b760
Method: 'GET' (0), request for '/hlib/domterm-core.css' wsi:0x64a640
lws_http_serve uri:hlib/domterm-core.css wsi:0x64a640
before lws_callback_on_writable wsi:0x64a640
before lws_http_action lws_handshake_server: wsi 0x64a8b0: ah 0x64d310
Method: 'GET' (0), request for '/hlib/domterm-standard.css' wsi:0x64a8b0
lws_http_serve uri:hlib/domterm-standard.css wsi:0x64a8b0
before lws_callback_on_writable wsi:0x64a8b0
before lws_http_action lws_handshake_server: wsi 0x64ab20: ah 0x64eec0
Method: 'GET' (0), request for '/hlib/goldenlayout-base.css' wsi:0x64ab20
lws_http_serve uri:hlib/goldenlayout-base.css wsi:0x64ab20
before lws_callback_on_writable wsi:0x64ab20
before lws_http_action lws_handshake_server: wsi 0x650a70: ah 0x650ce0
Method: 'GET' (0), request for '/hlib/domterm-layout.css' wsi:0x650a70
lws_http_serve uri:hlib/domterm-layout.css wsi:0x650a70
before lws_callback_on_writable wsi:0x650a70
before lws_http_action lws_handshake_server: wsi 0x652890: ah 0x652b00
Method: 'GET' (0), request for '/hlib/domterm-default.css' wsi:0x652890
lws_http_serve uri:hlib/domterm-default.css wsi:0x652890
before lws_callback_on_writable wsi:0x652890
-- 
	--Per Bothner
per at bothner.com   http://per.bothner.com/



More information about the Libwebsockets mailing list