Shuanglei Tao
6d69f0a55d
server: remove the sleep from main loop
2019-11-26 21:55:42 +08:00
Shuanglei Tao
28cbbdaa3d
html: preact 10.0.5
2019-11-23 23:19:32 +08:00
Shuanglei Tao
75b3b59247
html: upgrade to preact 10 and xterm 4.2.0
2019-10-26 14:45:04 +08:00
Shuanglei Tao
9126d54108
protocol: set pty fd close-on-exec
2019-09-28 23:31:15 +08:00
Shuanglei Tao
dbcf12512f
xterm.js 4.0.2
2019-09-28 23:11:41 +08:00
Shang Yuanchun
96528fe2e1
Focus to terminal after rz transfer completed ( #237 )
...
* Focus to terminal after rz transfer completed
* Generate index.html after commit d355d7b9c8
2019-09-28 23:01:22 +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
Shuanglei Tao
83c6317527
xterm.js 4.0.1
2019-09-14 10:34:46 +08:00
Shuanglei Tao
9af13f750a
xterm.js 3.14.0
2019-09-11 22:25:31 +08:00
Shuanglei Tao
671427b150
src: fallback to lws_get_peer_addresses on old libwebsockets
2019-09-03 22:29:27 +08:00
Xiang Dai
94817b4eb3
Avoid slow reverse-DNS requests caused by libwebsocket ( #222 )
...
* Avoid slow reverse-DNS requests caused by libwebsocket
According to warmcat/libwebsockets#537 and following my own experience, in some circumstances lws_get_peer_addresses can take several seconds to execute a reverse DNS request on a connected peer IP. The effect is that sometimes a websocket connection takes several seconds before it is established.
This PR addresses the described issue by replacing lws_get_peer_addresses with lws_get_peer_simple that completely skips the RDNS request.
Signed-off-by: Xiang Dai <764524258@qq.com >
2019-09-03 13:53:54 +08:00
Shuanglei Tao
3c73c96299
html: yarn upgrade
2019-08-28 22:36:15 +08:00
Shuanglei Tao
32cf6214d2
xterm.js 3.15.0-vscode1
2019-08-28 22:18:37 +08:00
Adela0602
87a705223f
Fix potential segmentation fault (SIGSEGV) error #209 ( #210 )
2019-08-04 21:11:30 +08:00
Shuanglei Tao
bee8af8af1
html: preact 8.5.0
2019-08-04 12:31:05 +08:00
Shuanglei Tao
251ad41f4c
server: fix pthread_mutex_trylock usage
2019-08-04 11:59:34 +08:00
Stuart Henderson
921ddda658
use errno.h not sys/errno.h in utils.c as in other files ( #207 )
...
Use errno.h rather than sysno/errno.h in utils.c, unbreaking build on OpenBSD (the "errno" symbol is only defined in errno.h not in sys/errno.h).
protocol.c and server.c already include errno.h rather than sys/errno.h so this should be safe on other OS here also.
2019-07-31 16:09:13 +08:00
Stuart Henderson
6facf525c1
include pthread.h for pthread_mutex_t ( #206 )
...
Needed to unbreak build on OpenBSD.
2019-07-31 16:09:01 +08:00
Shohei Kameda
12dd5c7d82
html: added window.term.fit
2019-07-25 23:25:55 +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
ef0027474c
html: update modal style
2019-07-12 20:53:01 +08:00
Shuanglei Tao
a1b5c23481
xterm.js 3.14.5
2019-07-11 19:36:19 +08:00
Shuanglei Tao
e8fd62e37b
html: abort zmodem session on ctrl+c
2019-07-07 20:59:07 +08:00
Shuanglei Tao
39f89ce3ce
html: add empty check for copy
2019-07-07 20:04:06 +08:00
Shuanglei Tao
218b14943d
html: polish zmodem code
2019-07-07 19:44:01 +08:00
Shuanglei Tao
20f20262bd
html: handle websocket error
2019-07-06 00:17:23 +08:00
Shuanglei Tao
0fc275f3a3
server: remove the reconnect option (enabled by default)
2019-07-05 23:09:07 +08:00
Shuanglei Tao
fd29928a9c
html: retry websocket connection with exponential backoff
2019-07-05 22:32:01 +08:00
Shuanglei Tao
b0ed073a00
html: reformat code
2019-07-04 21:23:04 +08:00
Shuanglei Tao
84ac40a614
html: move zmodem code as Component/ITerminalAddon
2019-07-04 00:20:30 +08:00
Shuanglei Tao
c4b9b6e4f7
xterm.js 3.14.4
2019-07-03 18:36:45 +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
9633942977
html: abort on zmodem consume error
2019-06-29 16:17:12 +08:00
Shuanglei Tao
9b0166b790
http: handle lws_send_pipe_choked state
2019-06-23 20:10:09 +08:00
Shuanglei Tao
afadc00f54
http: fix libwebsockets 1.7 support
2019-06-23 18:50:30 +08:00
Shuanglei Tao
70f16a7a41
html: polish zmodem code
2019-06-23 18:37:33 +08:00
Shuanglei Tao
9762993129
html: auto reconnect on zmodem error
2019-06-23 17:33:03 +08:00
Shuanglei Tao
6a40f326d5
html: add zmodem support back
2019-06-23 17:22:01 +08:00
Shuanglei Tao
86123ca7bc
html: update lint rules
2019-06-23 11:05:09 +08:00
Shuanglei Tao
ae837910da
http: add basic auth support back
2019-06-22 18:01:15 +08:00
Shuanglei Tao
c1c82b1a1a
http: fix keepalive for lws_serve_http_file
2019-06-22 15:23:24 +08:00
Shuanglei Tao
7901265f52
http: remove hack for old libwebsocket versions
2019-06-22 15:23:24 +08:00
Shuanglei Tao
5dfcb8dd3e
html: attach the term instance to window
2019-06-22 07:42:39 +08:00
Shuanglei Tao
11c1e1bc79
html: enable copy on select
2019-06-16 09:35:53 +08:00
Shuanglei Tao
e67d567fea
html: use ts string template
2019-06-16 09:03:37 +08:00
Shuanglei Tao
19c89ff2bb
html: add xterm weblinks addon
2019-06-16 08:06:10 +08:00