Commit Graph

81 Commits

Author SHA1 Message Date
Shuanglei Tao
d6921b235d protocol: add conpty support 2021-03-03 21:02:33 +08:00
Shuanglei Tao
215849b5d0 protocol: fix uv handle closing 2021-02-06 09:28:04 +08:00
Shuanglei Tao
7bd16386d2 server: increase max length of base path to 128 2021-01-28 23:39:21 +08:00
Shuanglei Tao
6db541b2b1 server: add mbedtls support 2020-12-30 00:45:09 +08:00
Shuanglei Tao
268a6ff38a scripts: bump to lws 4.1.4 2020-11-07 19:59:06 +08:00
MATSUO Takatoshi
47325461eb add websocket ping interval option (#519) 2020-11-07 12:00:27 +08:00
Shuanglei Tao
4d33dc4a60 cmake: check LWS_WITH_SSL 2020-07-27 07:52:22 +08:00
Shuanglei Tao
e34fd09dee server: fix unix domain socket for lws 4.0 2020-07-26 10:56:25 +08:00
Shuanglei Tao
5902726732 server: remove ws_ping_pong_interval on lws > 4.0
https://github.com/warmcat/libwebsockets/issues/1915
2020-07-25 09:26:22 +08:00
Shuanglei Tao
ff2eebc4cc src: fix lws version check for keep alive 2020-05-02 23:26:59 +08:00
Shuanglei Tao
c38cdc3fd7 clang-format: udpate ColumnLimit to 100 and reformat code 2020-03-26 01:27:11 +08:00
Daniel Monteiro Basso
398bebf091 Improvements for --base-path usage (#292)
* Trim trailing slashes in --base-path option

* Redirect `/base-path` to `/base-path/`

* Log endpoints if --base-path is provided

* Use predefined token for standard header 'location'
2020-03-25 17:12:33 +08:00
Shuanglei Tao
2fdb4c0c03 src: reformat with clang-format 2020-03-14 17:46:26 +08:00
Shuanglei Tao
b0c4ad97f0 all: use the static keyword on functions 2020-03-11 00:54:39 +08:00
Daniel Monteiro Basso
97260858bf Add -b, --base-path option for reverse proxies (#151) (#281)
* Add -b, --base-path option for reverse proxies (#151)
2020-03-10 09:54:34 +08:00
Shuanglei Tao
79acf9e896 server: mute lws 4.0 extensions warning 2020-03-10 09:35:54 +08:00
Shuanglei Tao
985885ce2d server: print listen port on start 2020-01-20 23:56:36 +08:00
Dennis Chen
498874deb8 bugfix: off by one error (#257)
The strncpy function requires enough space for a NUL terminator.
2020-01-02 21:30:58 +08:00
Shuanglei Tao
b67e382ab8 server: improve child process handling 2019-12-11 21:14:17 +08:00
Shuanglei Tao
d5b303aa73 server: exit immediately on old lws versions 2019-12-08 13:29:47 +08:00
Shuanglei Tao
df6f3bd652 protocol: rename tty_client to pss_tty 2019-11-30 17:49:37 +08:00
Shuanglei Tao
f61b9aec11 server: improve signal handling 2019-11-30 17:25:53 +08:00
Shuanglei Tao
fe7bad2c63 server: remove sys/queue dep 2019-11-30 17:25:27 +08:00
Shuanglei Tao
59601329ae libuv: initial support 2019-11-30 15:10:41 +08:00
Shuanglei Tao
831379e2bb server: add a tiny timeout to lws_service 2019-11-28 20:46:05 +08:00
Shuanglei Tao
6d69f0a55d server: remove the sleep from main loop 2019-11-26 21:55:42 +08:00
Shuanglei Tao
62844c2509 src: fix exit code check on linux 2019-09-15 19:07:02 +08:00
Shuanglei Tao
5381d0f825 all: remove pthread 2019-09-15 18:39:30 +08:00
ideal
4ad0cc86b7 Fix for upgrade of libwebsockets 3.2.0, it removes the poll which breaks every second in the previous version.
Reference:
[1] https://github.com/warmcat/libwebsockets/issues/1685
[2] https://libwebsockets.org/git/libwebsockets/tree/READMEs/README.lws_sul.md
2019-09-14 19:53:54 +08:00
Shuanglei Tao
46064ee86e src: refuse to compile with lws 3.2.0 2019-09-14 11:30:39 +08:00
Adela0602
87a705223f Fix potential segmentation fault (SIGSEGV) error #209 (#210) 2019-08-04 21:11:30 +08:00
Shuanglei Tao
251ad41f4c server: fix pthread_mutex_trylock usage 2019-08-04 11:59:34 +08:00
Shuanglei Tao
e074513246 server: fix the client-option and terminal-type long option 2019-07-23 20:35:27 +08:00
Shuanglei Tao
287585d61a server: hide ipv6 option if not suppored by lws 2019-07-19 22:56:18 +08:00
Shuanglei Tao
0fc275f3a3 server: remove the reconnect option (enabled by default) 2019-07-05 23:09:07 +08:00
Shuanglei Tao
66025e640d server: allow reconnect to be 0 2019-05-15 20:33:06 +08:00
Shuanglei Tao
e73a8e8587 protocol: cleanup process without hanging 2019-05-11 10:05:51 +08:00
Shuanglei Tao
e954cb5481 server: do not block main thread when acquiring lock 2019-04-17 18:28:10 +08:00
Shuanglei Tao
74e091f954 server: add support for cli args via url 2019-04-14 22:28:03 +08:00
Shuanglei Tao
bd8d2cfc32 server: remove unused options 2019-04-14 19:14:25 +08:00
Shuanglei Tao
348de8e0a7 server: use the default ssl_cipher_list 2019-04-14 18:30:07 +08:00
Shohei Kameda
7f7bf3cc89 Update max_heaser_data deafult from 4K to 20K (#163) 2019-03-19 09:51:30 +08:00
Shuanglei Tao
62bef0d545 server: add option to toggle IPv6 support 2018-12-09 09:13:14 +08:00
Shuanglei Tao
cb7fe0c347 cmake: do not check lws_config.h 2018-11-29 22:37:47 +08:00
Shuanglei Tao
aac89aa617 server: custom terminal type support 2018-09-01 21:02:43 +08:00
Shuanglei Tao
176f3e18a3 protocol: replace sleep with pthread cond 2018-08-20 13:33:17 +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
Shuanglei Tao
26f8b17891 server: use libwebsockets's built-in ping-pong 2018-01-11 22:15:49 +08:00
Shuanglei Tao
3a4b993ec4 Fix signal name display 2018-01-08 19:41:42 +08:00