]> prime8.dev >> repos - ttyd.git/log
ttyd.git
5 years agoall: remove pthread
Shuanglei Tao [Sun, 15 Sep 2019 10:09:48 +0000 (18:09 +0800)]
all: remove pthread

5 years agoFix for upgrade of libwebsockets 3.2.0, it removes the poll which breaks every second...
ideal [Sat, 14 Sep 2019 10:06:18 +0000 (18:06 +0800)]
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

5 years agosrc: refuse to compile with lws 3.2.0
Shuanglei Tao [Sat, 14 Sep 2019 03:30:39 +0000 (11:30 +0800)]
src: refuse to compile with lws 3.2.0

5 years agoxterm.js 4.0.1
Shuanglei Tao [Sat, 14 Sep 2019 02:34:17 +0000 (10:34 +0800)]
xterm.js 4.0.1

5 years agoUpdate terser-webpack-plugin in group default to the latest version 🚀 (#224)
greenkeeper[bot] [Wed, 11 Sep 2019 14:32:07 +0000 (22:32 +0800)]
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

5 years agoxterm.js 3.14.0
Shuanglei Tao [Wed, 11 Sep 2019 14:25:31 +0000 (22:25 +0800)]
xterm.js 3.14.0

5 years agoUpdate sass-loader in group default to the latest version 🚀 (#221)
greenkeeper[bot] [Tue, 3 Sep 2019 14:38:54 +0000 (22:38 +0800)]
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

5 years agosrc: fallback to lws_get_peer_addresses on old libwebsockets
Shuanglei Tao [Tue, 3 Sep 2019 14:29:27 +0000 (22:29 +0800)]
src: fallback to lws_get_peer_addresses on old libwebsockets

5 years agoAvoid slow reverse-DNS requests caused by libwebsocket (#222)
Xiang Dai [Tue, 3 Sep 2019 05:53:54 +0000 (13:53 +0800)]
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>
5 years agogithub: update release workflow
Shuanglei Tao [Wed, 28 Aug 2019 15:27:37 +0000 (23:27 +0800)]
github: update release workflow

5 years agogithub: add release workflow
Shuanglei Tao [Wed, 28 Aug 2019 15:03:41 +0000 (23:03 +0800)]
github: add release workflow

5 years agohtml: yarn upgrade
Shuanglei Tao [Wed, 28 Aug 2019 14:36:15 +0000 (22:36 +0800)]
html: yarn upgrade

5 years agobuild(deps): bump mixin-deep from 1.3.1 to 1.3.2 in /html (#219)
dependabot[bot] [Wed, 28 Aug 2019 14:27:46 +0000 (22:27 +0800)]
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>
5 years agoxterm.js 3.15.0-vscode1
Shuanglei Tao [Wed, 28 Aug 2019 14:18:37 +0000 (22:18 +0800)]
xterm.js 3.15.0-vscode1

5 years agoAdd github workflow
Shuanglei Tao [Sun, 25 Aug 2019 02:20:49 +0000 (10:20 +0800)]
Add github workflow

5 years agoUpdate style-loader in group default to the latest version 🚀 (#212)
greenkeeper[bot] [Tue, 6 Aug 2019 16:05:21 +0000 (00:05 +0800)]
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

5 years agoBump to 1.5.2
Shuanglei Tao [Mon, 5 Aug 2019 13:38:00 +0000 (21:38 +0800)]
Bump to 1.5.2

5 years agoFix potential segmentation fault (SIGSEGV) error #209 (#210)
Adela0602 [Sun, 4 Aug 2019 13:11:30 +0000 (21:11 +0800)]
Fix potential segmentation fault (SIGSEGV) error #209 (#210)

5 years agotravis: compile html frondend
Shuanglei Tao [Sun, 4 Aug 2019 04:39:50 +0000 (12:39 +0800)]
travis: compile html frondend

5 years agohtml: preact 8.5.0
Shuanglei Tao [Sun, 4 Aug 2019 04:31:05 +0000 (12:31 +0800)]
html: preact 8.5.0

5 years agoserver: fix pthread_mutex_trylock usage
Shuanglei Tao [Sun, 4 Aug 2019 03:59:34 +0000 (11:59 +0800)]
server: fix pthread_mutex_trylock usage

5 years agouse errno.h not sys/errno.h in utils.c as in other files (#207)
Stuart Henderson [Wed, 31 Jul 2019 08:09:13 +0000 (09:09 +0100)]
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.

5 years agoinclude pthread.h for pthread_mutex_t (#206)
Stuart Henderson [Wed, 31 Jul 2019 08:09:01 +0000 (09:09 +0100)]
include pthread.h for pthread_mutex_t (#206)

Needed to unbreak build on OpenBSD.

5 years agohtml: added window.term.fit
Shohei Kameda [Thu, 25 Jul 2019 14:06:03 +0000 (23:06 +0900)]
html: added window.term.fit

5 years agoserver: fix the client-option and terminal-type long option
Shuanglei Tao [Tue, 23 Jul 2019 12:35:27 +0000 (20:35 +0800)]
server: fix the client-option and terminal-type long option

5 years agoscripts: enable ipv6 support for lws
Shuanglei Tao [Fri, 19 Jul 2019 15:00:18 +0000 (23:00 +0800)]
scripts: enable ipv6 support for lws

5 years agoserver: hide ipv6 option if not suppored by lws
Shuanglei Tao [Fri, 19 Jul 2019 14:55:03 +0000 (22:55 +0800)]
server: hide ipv6 option if not suppored by lws

5 years agoREADME: update SSL script to generate sha256 cert
Shuanglei Tao [Thu, 18 Jul 2019 09:21:46 +0000 (17:21 +0800)]
README: update SSL script to generate sha256 cert

5 years agoUpdate mini-css-extract-plugin in group default to the latest version 🚀 (#201)
greenkeeper[bot] [Wed, 17 Jul 2019 05:52:03 +0000 (13:52 +0800)]
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

5 years agoBump to 1.5.1
Shuanglei Tao [Fri, 12 Jul 2019 12:57:35 +0000 (20:57 +0800)]
Bump to 1.5.1

5 years agohtml: update modal style
Shuanglei Tao [Fri, 12 Jul 2019 12:53:01 +0000 (20:53 +0800)]
html: update modal style

5 years agoUpdate dependencies to enable Greenkeeper 🌴 (#200)
greenkeeper[bot] [Thu, 11 Jul 2019 12:20:46 +0000 (20:20 +0800)]
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

5 years agobuild(deps): bump lodash from 4.17.11 to 4.17.14 in /html (#199)
dependabot[bot] [Thu, 11 Jul 2019 11:57:12 +0000 (19:57 +0800)]
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>
5 years agoxterm.js 3.14.5
Shuanglei Tao [Thu, 11 Jul 2019 11:36:19 +0000 (19:36 +0800)]
xterm.js 3.14.5

5 years agohtml: abort zmodem session on ctrl+c
Shuanglei Tao [Sun, 7 Jul 2019 12:58:57 +0000 (20:58 +0800)]
html: abort zmodem session on ctrl+c

5 years agohtml: add empty check for copy
Shuanglei Tao [Sun, 7 Jul 2019 12:04:06 +0000 (20:04 +0800)]
html: add empty check for copy

5 years agohtml: polish zmodem code
Shuanglei Tao [Sun, 7 Jul 2019 11:44:01 +0000 (19:44 +0800)]
html: polish zmodem code

5 years agohtml: handle websocket error
Shuanglei Tao [Fri, 5 Jul 2019 16:17:23 +0000 (00:17 +0800)]
html: handle websocket error

5 years agoserver: remove the reconnect option (enabled by default)
Shuanglei Tao [Fri, 5 Jul 2019 15:05:09 +0000 (23:05 +0800)]
server: remove the reconnect option (enabled by default)

5 years agohtml: retry websocket connection with exponential backoff
Shuanglei Tao [Fri, 5 Jul 2019 14:32:01 +0000 (22:32 +0800)]
html: retry websocket connection with exponential backoff

5 years agohtml: reformat code
Shuanglei Tao [Thu, 4 Jul 2019 13:09:20 +0000 (21:09 +0800)]
html: reformat code

5 years agohtml: move zmodem code as Component/ITerminalAddon
Shuanglei Tao [Wed, 3 Jul 2019 16:16:21 +0000 (00:16 +0800)]
html: move zmodem code as Component/ITerminalAddon

5 years agoxterm.js 3.14.4
Shuanglei Tao [Wed, 3 Jul 2019 10:36:45 +0000 (18:36 +0800)]
xterm.js 3.14.4

5 years agoprotocol: remove the O_NONBLOCK flag on pty fd
Shuanglei Tao [Sun, 30 Jun 2019 04:35:25 +0000 (12:35 +0800)]
protocol: remove the O_NONBLOCK flag on pty fd

it breaks zmodem support for rz

5 years agohtml: abort on zmodem consume error
Shuanglei Tao [Sat, 29 Jun 2019 04:26:58 +0000 (12:26 +0800)]
html: abort on zmodem consume error

5 years agoBump to 1.5.0
Shuanglei Tao [Sun, 23 Jun 2019 12:13:50 +0000 (20:13 +0800)]
Bump to 1.5.0

5 years agohttp: handle lws_send_pipe_choked state
Shuanglei Tao [Sun, 23 Jun 2019 12:10:09 +0000 (20:10 +0800)]
http: handle lws_send_pipe_choked state

5 years agohttp: fix libwebsockets 1.7 support
Shuanglei Tao [Sun, 23 Jun 2019 10:50:30 +0000 (18:50 +0800)]
http: fix libwebsockets 1.7 support

5 years agohtml: polish zmodem code
Shuanglei Tao [Sun, 23 Jun 2019 10:37:33 +0000 (18:37 +0800)]
html: polish zmodem code

5 years agohtml: auto reconnect on zmodem error
Shuanglei Tao [Sun, 23 Jun 2019 09:33:03 +0000 (17:33 +0800)]
html: auto reconnect on zmodem error

5 years agohtml: add zmodem support back
Shuanglei Tao [Sun, 23 Jun 2019 09:19:29 +0000 (17:19 +0800)]
html: add zmodem support back

5 years agohtml: update lint rules
Shuanglei Tao [Sun, 23 Jun 2019 03:05:09 +0000 (11:05 +0800)]
html: update lint rules

5 years agohttp: add basic auth support back
Shuanglei Tao [Sat, 22 Jun 2019 10:01:15 +0000 (18:01 +0800)]
http: add basic auth support back

5 years agohttp: fix keepalive for lws_serve_http_file
Shuanglei Tao [Sat, 22 Jun 2019 07:22:53 +0000 (15:22 +0800)]
http: fix keepalive for lws_serve_http_file

5 years agohttp: remove hack for old libwebsocket versions
Shuanglei Tao [Thu, 20 Jun 2019 14:14:58 +0000 (22:14 +0800)]
http: remove hack for old libwebsocket versions

5 years agohtml: attach the term instance to window
Shuanglei Tao [Fri, 21 Jun 2019 23:42:39 +0000 (07:42 +0800)]
html: attach the term instance to window

5 years agohtml: enable copy on select
Shuanglei Tao [Sun, 16 Jun 2019 01:35:53 +0000 (09:35 +0800)]
html: enable copy on select

5 years agohtml: use ts string template
Shuanglei Tao [Sun, 16 Jun 2019 01:03:37 +0000 (09:03 +0800)]
html: use ts string template

5 years agohtml: add xterm weblinks addon
Shuanglei Tao [Sun, 16 Jun 2019 00:06:10 +0000 (08:06 +0800)]
html: add xterm weblinks addon

5 years agohtml: restore prefix to console message
Shuanglei Tao [Sat, 15 Jun 2019 01:24:19 +0000 (09:24 +0800)]
html: restore prefix to console message

5 years agoxterm.js 3.14.2
Shuanglei Tao [Sat, 15 Jun 2019 01:15:47 +0000 (09:15 +0800)]
xterm.js 3.14.2

5 years agohttp: fix keepalive issue
Shuanglei Tao [Fri, 14 Jun 2019 23:43:18 +0000 (07:43 +0800)]
http: fix keepalive issue

5 years agohtml: fix lint
Shuanglei Tao [Mon, 27 May 2019 03:58:26 +0000 (11:58 +0800)]
html: fix lint

5 years agohtml: replace with preact version
Shuanglei Tao [Sun, 26 May 2019 16:00:02 +0000 (00:00 +0800)]
html: replace with preact version

5 years agopreact: convert to typescript
Shuanglei Tao [Sun, 26 May 2019 02:31:55 +0000 (10:31 +0800)]
preact: convert to typescript

5 years agopreact: update dependencies
Shuanglei Tao [Fri, 3 May 2019 15:12:13 +0000 (23:12 +0800)]
preact: update dependencies

5 years agopreact: add README
Shuanglei Tao [Sun, 29 Apr 2018 03:35:58 +0000 (11:35 +0800)]
preact: add README

5 years agopreact: intial commit
Shuanglei Tao [Sun, 29 Apr 2018 03:11:11 +0000 (11:11 +0800)]
preact: intial commit

5 years agohtml: convert numeric value to enum
Shuanglei Tao [Fri, 24 May 2019 12:40:59 +0000 (20:40 +0800)]
html: convert numeric value to enum

5 years agoxterm.js 3.13.2
Shuanglei Tao [Fri, 24 May 2019 12:31:52 +0000 (20:31 +0800)]
xterm.js 3.13.2

5 years agohtml: reload page when basic auth is failed (#187)
Shohei Kameda [Fri, 24 May 2019 11:35:41 +0000 (20:35 +0900)]
html: reload page when basic auth is failed (#187)

5 years agohtml: add tslint to webpack
Shuanglei Tao [Fri, 17 May 2019 03:21:33 +0000 (11:21 +0800)]
html: add tslint to webpack

5 years agohtml: update webpack
Shuanglei Tao [Fri, 17 May 2019 02:38:20 +0000 (10:38 +0800)]
html: update webpack

5 years agohtml: hide modal on ws close
Shuanglei Tao [Thu, 16 May 2019 14:41:56 +0000 (22:41 +0800)]
html: hide modal on ws close

5 years agohtml: zmodem.js 0.1.9
Shuanglei Tao [Thu, 16 May 2019 14:40:32 +0000 (22:40 +0800)]
html: zmodem.js 0.1.9

5 years agohtml: drop support for ie11
Shuanglei Tao [Thu, 16 May 2019 05:55:12 +0000 (13:55 +0800)]
html: drop support for ie11

5 years agohtml: migrate to typescript
Shuanglei Tao [Wed, 15 May 2019 15:52:22 +0000 (23:52 +0800)]
html: migrate to typescript

5 years agohtml: use more es6 syntax
Shuanglei Tao [Wed, 15 May 2019 13:14:16 +0000 (21:14 +0800)]
html: use more es6 syntax

5 years agoxterm.js 3.13.0
Shuanglei Tao [Wed, 15 May 2019 12:39:32 +0000 (20:39 +0800)]
xterm.js 3.13.0

5 years agohtml: add ttyd prefix to console log
Shuanglei Tao [Wed, 15 May 2019 12:37:14 +0000 (20:37 +0800)]
html: add ttyd prefix to console log

5 years agoserver: allow reconnect to be 0
Shuanglei Tao [Wed, 15 May 2019 12:21:24 +0000 (20:21 +0800)]
server: allow reconnect to be 0

5 years agoutils: fix wait status
Shuanglei Tao [Sun, 12 May 2019 03:35:54 +0000 (11:35 +0800)]
utils: fix wait status

5 years agoprotocol: cleanup process without hanging
Shuanglei Tao [Sat, 11 May 2019 01:48:16 +0000 (09:48 +0800)]
protocol: cleanup process without hanging

5 years agoBump to 1.4.4
Shuanglei Tao [Sun, 21 Apr 2019 02:29:18 +0000 (10:29 +0800)]
Bump to 1.4.4

5 years agoprotocol: set the pty file descriptor non blocking
Shuanglei Tao [Sun, 21 Apr 2019 02:22:37 +0000 (10:22 +0800)]
protocol: set the pty file descriptor non blocking

5 years agohtml: remove bulma
Shuanglei Tao [Sat, 20 Apr 2019 08:06:23 +0000 (16:06 +0800)]
html: remove bulma

5 years agoprotocol: do not block main thread when destroying client
Shuanglei Tao [Sat, 20 Apr 2019 23:16:34 +0000 (07:16 +0800)]
protocol: do not block main thread when destroying client

5 years agoBump to 1.4.3
Shuanglei Tao [Sat, 20 Apr 2019 05:36:10 +0000 (13:36 +0800)]
Bump to 1.4.3

5 years agotravis: upload github release
Shuanglei Tao [Sat, 20 Apr 2019 05:07:12 +0000 (13:07 +0800)]
travis: upload github release

5 years agocross-build: update script
Shuanglei Tao [Sat, 20 Apr 2019 03:55:26 +0000 (11:55 +0800)]
cross-build: update script

5 years agotravis: add libwebsockets 3.1.0
Shuanglei Tao [Sat, 20 Apr 2019 02:11:20 +0000 (10:11 +0800)]
travis: add libwebsockets 3.1.0

5 years agoxterm.js 3.12.2
Shuanglei Tao [Wed, 17 Apr 2019 10:38:16 +0000 (18:38 +0800)]
xterm.js 3.12.2

5 years agoserver: do not block main thread when acquiring lock
Shuanglei Tao [Wed, 17 Apr 2019 10:28:10 +0000 (18:28 +0800)]
server: do not block main thread when acquiring lock

5 years agoDockerfile: add tini as entrypoint
Shuanglei Tao [Sun, 14 Apr 2019 16:51:41 +0000 (00:51 +0800)]
Dockerfile: add tini as entrypoint

5 years agoupdate README
Shuanglei Tao [Sun, 14 Apr 2019 14:36:37 +0000 (22:36 +0800)]
update README

5 years agoserver: add support for cli args via url
Shuanglei Tao [Sun, 14 Apr 2019 14:21:21 +0000 (22:21 +0800)]
server: add support for cli args via url

5 years agoserver: remove unused options
Shuanglei Tao [Sun, 14 Apr 2019 11:14:25 +0000 (19:14 +0800)]
server: remove unused options

5 years agoserver: use the default ssl_cipher_list
Shuanglei Tao [Sun, 14 Apr 2019 10:30:07 +0000 (18:30 +0800)]
server: use the default ssl_cipher_list

5 years agohtml: do not apply winptyCompat addon
Shuanglei Tao [Mon, 25 Mar 2019 04:11:36 +0000 (12:11 +0800)]
html: do not apply winptyCompat addon

5 years agoprotocol: exit thread as soon as the command terminate, fixes #112
Santosh Kumar Gupta [Thu, 23 Aug 2018 20:49:12 +0000 (02:19 +0530)]
protocol: exit thread as soon as the command terminate, fixes #112