Commit Graph

13 Commits

Author SHA1 Message Date
Shuanglei Tao
60a9bf1ab6 http: write index html with buffer 2018-09-01 20:37:18 +08:00
Shuanglei Tao
ac58cde5e6 http: revert change for libwebsockets < 3, fixes #120 2018-09-01 20:05:04 +08:00
Shuanglei Tao
d1d5336af1 http: lws_snprintf -> snprintf
lws_snprintf is not available in libwebsockets 1.7.1
2018-08-18 17:24:57 +08:00
Shuanglei Tao
0f97a69446 libwebsockets 3.0 support 2018-08-18 17:07:41 +08:00
Shuanglei Tao
be91d56904 src: seprate includes from server.h 2018-08-18 09:59:19 +08:00
dohnuts
f6361caa50 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
2017-04-25 20:35:41 +08:00
Shuanglei Tao
3580e80783 Add support for the --max-clients option 2017-04-06 21:45:07 +08:00
Shuanglei Tao
ffdf56e440 Execute command after authentication 2017-02-05 18:06:13 +08:00
Shuanglei Tao
c9ffa8a8d7 Add support for the --index option 2017-01-19 23:40:20 +08:00
Shuanglei Tao
085f6d54db Reformat C source files 2016-12-21 23:10:18 +08:00
Shuanglei Tao
15e2dd96a4 Enable client certificate verification if ssl CA is given 2016-11-23 23:34:56 +08:00
Shuanglei Tao
9174d6116c Implemented authentication for websocket connection 2016-09-25 01:00:34 +08:00
Shuanglei Tao
1f579b491a Move source files to src 2016-09-19 22:20:40 +08:00