Commit Graph

291 Commits

Author SHA1 Message Date
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
e979d82f2d README: update badges 2019-10-01 18:55:32 +08:00
Shuanglei Tao
d290f08770 workflow: update backend 2019-10-01 18:47:30 +08:00
Shuanglei Tao
0c3e93e094 workflow: add lws 3.2.0 2019-10-01 18:19:36 +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
greenkeeper[bot]
8f35d0c8f6 Update terser-webpack-plugin in group default to the latest version 🚀 (#224)
* chore(package): update terser-webpack-plugin to version 2.0.0

* chore: update lockfile yarn.lock
2019-09-11 22:32:07 +08:00
Shuanglei Tao
9af13f750a xterm.js 3.14.0 2019-09-11 22:25:31 +08:00
greenkeeper[bot]
fa09895d69 Update sass-loader in group default to the latest version 🚀 (#221)
* chore(package): update sass-loader to version 8.0.0

* chore: update lockfile yarn.lock
2019-09-03 22:38:53 +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
43c5aedd35 github: update release workflow 2019-08-28 23:29:13 +08:00
Shuanglei Tao
da2406a4f3 github: add release workflow 2019-08-28 23:03:41 +08:00
Shuanglei Tao
3c73c96299 html: yarn upgrade 2019-08-28 22:36:15 +08:00
dependabot[bot]
5bbfcc84d8 build(deps): bump mixin-deep from 1.3.1 to 1.3.2 in /html (#219)
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-08-28 22:27:46 +08:00
Shuanglei Tao
32cf6214d2 xterm.js 3.15.0-vscode1 2019-08-28 22:18:37 +08:00
Shuanglei Tao
01a2ce0725 Add github workflow 2019-08-25 10:56:22 +08:00
greenkeeper[bot]
93b6c3f1e4 Update style-loader in group default to the latest version 🚀 (#212)
* chore(package): update style-loader to version 1.0.0

* chore: update lockfile yarn.lock
2019-08-07 00:05:21 +08:00
Shuanglei Tao
d8903e1e07 Bump to 1.5.2 1.5.2 2019-08-05 21:38:05 +08:00
Adela0602
87a705223f Fix potential segmentation fault (SIGSEGV) error #209 (#210) 2019-08-04 21:11:30 +08:00
Shuanglei Tao
a6b4d282da travis: compile html frondend 2019-08-04 15:18:20 +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
243a9b47fa scripts: enable ipv6 support for lws 2019-07-19 23:00:18 +08:00
Shuanglei Tao
287585d61a server: hide ipv6 option if not suppored by lws 2019-07-19 22:56:18 +08:00
Shuanglei Tao
da047be76a README: update SSL script to generate sha256 cert 2019-07-18 17:21:46 +08:00
greenkeeper[bot]
62f869f8e5 Update mini-css-extract-plugin in group default to the latest version 🚀 (#201)
* chore(package): update mini-css-extract-plugin to version 0.8.0

* chore(package): update lock yarn.lock
2019-07-17 13:52:03 +08:00
Shuanglei Tao
0a8eb1d9e2 Bump to 1.5.1 1.5.1 2019-07-12 20:57:35 +08:00
Shuanglei Tao
ef0027474c html: update modal style 2019-07-12 20:53:01 +08:00
greenkeeper[bot]
54711e8c5b Update dependencies to enable Greenkeeper 🌴 (#200)
* chore: add Greenkeeper config file

* chore(package): update dependencies

* docs(readme): add Greenkeeper badge

* chore(package): update lockfile yarn.lock
2019-07-11 20:20:46 +08:00
dependabot[bot]
819d605257 build(deps): bump lodash from 4.17.11 to 4.17.14 in /html (#199)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.14.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.11...4.17.14)

Signed-off-by: dependabot[bot] <support@github.com>
2019-07-11 19:57:12 +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