Commit Graph

63 Commits

Author SHA1 Message Date
Shuanglei Tao
48f53bcc00 protocol: fix lws callback compatibility 2020-03-10 09:41:35 +08:00
Shuanglei Tao
72dbba3d5a protocol: print signal name 2019-12-15 00:07:19 +08:00
Shuanglei Tao
76eebaaa4a protocol: use uv_kill to kill process 2019-12-14 22:59:56 +08:00
Shuanglei Tao
cb02d79281 protocol: fix json parsing 2019-12-14 22:50:53 +08:00
Shuanglei Tao
b67e382ab8 server: improve child process handling 2019-12-11 21:14:17 +08:00
Shuanglei Tao
cfd338ea5e terminal: set the pty fd non blocking 2019-12-05 23:19:34 +08:00
Shuanglei Tao
ca91f40048 protocol: split forkpty to separate file 2019-12-05 22:28:58 +08:00
Shuanglei Tao
c0ebb57d9e protocol: cleanup pipe handle 2019-11-30 19:24:42 +08:00
Shuanglei Tao
36c9734623 protocol: fix potential double free 2019-11-30 18:48:56 +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
6d69f0a55d server: remove the sleep from main loop 2019-11-26 21:55:42 +08:00
Shuanglei Tao
9126d54108 protocol: set pty fd close-on-exec 2019-09-28 23:31:15 +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
671427b150 src: fallback to lws_get_peer_addresses on old libwebsockets 2019-09-03 22:29:27 +08:00
Shuanglei Tao
251ad41f4c server: fix pthread_mutex_trylock usage 2019-08-04 11:59:34 +08:00
Shuanglei Tao
0fc275f3a3 server: remove the reconnect option (enabled by default) 2019-07-05 23:09:07 +08:00
Shuanglei Tao
513c64cb0c protocol: remove the O_NONBLOCK flag on pty fd
it breaks zmodem support for rz
2019-06-30 12:35:30 +08:00
Shuanglei Tao
7901265f52 http: remove hack for old libwebsocket versions 2019-06-22 15:23:24 +08:00
Shuanglei Tao
e73a8e8587 protocol: cleanup process without hanging 2019-05-11 10:05:51 +08:00
Shuanglei Tao
4cd6d480d6 protocol: set the pty file descriptor non blocking 2019-04-21 10:22:37 +08:00
Shuanglei Tao
d5a542d0dc protocol: do not block main thread when destroying client 2019-04-21 07:17:07 +08:00
Shuanglei Tao
74e091f954 server: add support for cli args via url 2019-04-14 22:28:03 +08:00
Santosh Kumar Gupta
f95cacd61b protocol: exit thread as soon as the command terminate, fixes #112 2019-03-25 11:46:38 +08:00
Shuanglei Tao
154cacce64 protocol: kill process group 2019-03-16 21:23:18 +08:00
dmayle
0b44b9b943 Close the websocket after forking so that child processes don't prevent new connections (#162) 2019-03-16 11:08:37 +08:00
Shuanglei Tao
51c1ec0f7f protocol: cleanup stale thread 2019-01-17 22:37:54 +08:00
Shuanglei Tao
b6d160a0f6 protocol: fix pthread_cond_wait usage 2018-09-09 13:37:49 +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
ff1f19d9ef protocol: ignore invalid message 2018-03-24 12:17:25 +08:00
Shuanglei Tao
9dd8a97e6b protocol: avoid extra copy of pty data 2018-01-13 11:30:37 +08:00
Shuanglei Tao
26f8b17891 server: use libwebsockets's built-in ping-pong 2018-01-11 22:15:49 +08:00
Shuanglei Tao
710aa1cd98 protocol: fix a regression that may crashes the server 2018-01-10 00:09:39 +08:00
Shuanglei Tao
47ba5daa12 protocol: use binary message 2017-11-25 22:53:44 +08:00
Shuanglei Tao
784ac09f05 protocol: fix host origin checking
Thanks @ben365 (#75)
2017-10-24 20:31:39 +08:00
Shuanglei Tao
4e0801db8e Do not reconnect if process exited, fixes #50 2017-05-20 18:56:40 +08:00
Shuanglei Tao
3580e80783 Add support for the --max-clients option 2017-04-06 21:45:07 +08:00
Shuanglei Tao
35c97df863 Fix client count calculation 2017-03-21 23:14:48 +08:00
Shuanglei Tao
08ac6dc43c Fix potential segmentation fault (SIGSEGV) error
The server->clients variable may still holds reference to user data which is already freed after websocket connection closed.
2017-03-11 02:34:37 +08:00
Shuanglei Tao
4d31e534c0 Fix an issue that can bypass basic authentication
Reported by Donato Ferrante (NCC Group).
2017-03-11 02:11:52 +08:00
Shuanglei Tao
0a057b22c3 Print more details about errors 2017-02-23 19:57:17 +08:00
Shuanglei Tao
1fc2dfb3a5 Upgrade to xterm.js 2.3.2 2017-02-18 16:52:07 +08:00
Shuanglei Tao
c4dd409aac Fix signal string not work, revert to sys_signame 2017-02-08 23:14:24 +08:00