]> prime8.dev >> repos - ttyd.git/commit
Do not try to reuse for lws_serve_http_file, fixes #43
authordohnuts <dohnuts@users.noreply.github.com>
Mon, 24 Apr 2017 21:28:54 +0000 (17:28 -0400)
committerShuanglei Tao <tsl0922@gmail.com>
Tue, 25 Apr 2017 12:35:41 +0000 (20:35 +0800)
commitf6361caa50b921d376df3808365ea815f237e64a
tree4b54ebaf054980c4ebdcc86d20452203e6e5189e
parentb3db11c2c1bd937cd05438020b610dfd1d402526
Do not try to reuse for lws_serve_http_file, fixes #43

Following documentation it s important to not try to reuse when lws_serve_http_file
return 0 nor to try to reuse the socket.

This fix the issue on openbsd 6.0 ( my current test is with upgraded libwebsocket 2.0.3 instead of 2.0.2 but it shouldnt matter
src/http.c