Comments (10)
Upgrade your libwesockets to the latest version and try again.
from ttyd.
@tsl0922 did you mean libwebsockets
they are all newest version
➜ Codes apt-cache search libwebsockets
libwebsockets-dev - lightweight C websockets library - development files
libwebsockets-test-server - lightweight C websockets library - test servers
libwebsockets-test-server-common - lightweight C websockets library - test servers data
libwebsockets7 - lightweight C websockets library
➜ Codes sudo apt-get install libwebsockets-dev libwebsockets7
Reading package lists... Done
Building dependency tree
Reading state information... Done
libwebsockets-dev is already the newest version (1.7.1-1).
libwebsockets7 is already the newest version (1.7.1-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
from ttyd.
@williamherry maybe,😄
from ttyd.
Can you try if the docker image tsl0922/ttyd
(based on 16.04) works? I had tested on native ubuntu 16.04 host, it works fine, too.
from ttyd.
Chrome not work, but firefox works, thank you :-)
from ttyd.
@zlx 😄
from ttyd.
@williamherry What's the version of Chrome that doesn't work? I'm using Chrome(latest version), too. This maybe a libwebsockets issue, you can try the latest upstream version v2.0.3, ubuntu only maintains the 1.7.x version currently.
from ttyd.
@tsl0922 yes, you are right, the version of Chrome is very old, after upgrade to latest version, everything works, thanks
from ttyd.
Euhm I have same error with latest chrome on os x : Version 71.0.3578.98. It does work in safari on os x mojave. But the gotty go version does not have this issue on same chrome and safari browser. I did brew install ttyd and tried using it in chrome os x version 10.14.2.
output of ttyd with chrome:
ttyd -p 9000 bash
[2019/01/18 14:54:23:4886] NOTICE: ttyd 1.4.2 (libwebsockets 3.1.0)
[2019/01/18 14:54:23:4887] NOTICE: tty configuration:
[2019/01/18 14:54:23:4887] NOTICE: start command: bash
[2019/01/18 14:54:23:4887] NOTICE: close signal: SIGHUP (1)
[2019/01/18 14:54:23:4887] NOTICE: terminal type: xterm-256color
[2019/01/18 14:54:23:4887] NOTICE: reconnect timeout: 10s
[2019/01/18 14:54:23:4896] NOTICE: Creating Vhost 'default' port 9000, 2 protocols, IPv6 on
[2019/01/18 14:54:30:5525] ERR: Ran out of header data space
[2019/01/18 14:54:30:5558] ERR: Ran out of header data space
[2019/01/18 14:54:30:5573] ERR: Ran out of header data space
[2019/01/18 14:54:30:7306] ERR: Ran out of header data space
[2019/01/18 14:54:30:7311] ERR: Ran out of header data space
[2019/01/18 14:54:30:7317] ERR: Ran out of header data space
[2019/01/18 14:54:35:7666] ERR: Ran out of header data space
Output when using safari (then it works fine):
ttyd -p 9000 bash
[2019/01/18 14:53:27:0291] NOTICE: ttyd 1.4.2 (libwebsockets 3.1.0)
[2019/01/18 14:53:27:0294] NOTICE: tty configuration:
[2019/01/18 14:53:27:0294] NOTICE: start command: bash
[2019/01/18 14:53:27:0294] NOTICE: close signal: SIGHUP (1)
[2019/01/18 14:53:27:0294] NOTICE: terminal type: xterm-256color
[2019/01/18 14:53:27:0294] NOTICE: reconnect timeout: 10s
[2019/01/18 14:53:27:0296] NOTICE: Creating Vhost 'default' port 9000, 2 protocols, IPv6 on
[2019/01/18 14:53:39:0449] NOTICE: HTTP / - ::1 (localhost)
[2019/01/18 14:53:39:0697] NOTICE: HTTP /auth_token.js - ::1 (localhost)
[2019/01/18 14:53:39:3003] NOTICE: WS /ws - ::1 (localhost), clients: 1
[2019/01/18 14:53:39:4660] NOTICE: started process, pid: 55909
[2019/01/18 14:53:40:4465] NOTICE: HTTP /favicon.ico - ::1 (localhost)
[2019/01/18 14:53:48:8089] NOTICE: sending SIGHUP (1) to process 55909
[2019/01/18 14:53:48:8091] NOTICE: process exited with code 0, pid: 55909
[2019/01/18 14:53:48:8092] NOTICE: WS closed from ::1 (localhost), clients: 0
from ttyd.
Ok extra info. When I clear all my cookies it does work in Chrome also!
So some libwebsockets setting is somehow limited in size and breaks if a browser with many cookies tries to open the url of ttyd.
But still this is an issue basically it doesn;'t work when you have too many cookies set in your browser ;). Like said gotty go version does not complain here...
from ttyd.
Related Issues (20)
- ttyd crashes on windows HOT 4
- Safari 17 Does Not Load WebSockets, TTYD 1.7.4 (ARM) Will Not Load HOT 8
- Query command HOT 1
- Why can't ttyd let the browser save passwords? HOT 1
- Resume publishing SHA256SUMS HOT 1
- Integration with dockerized alpine HOT 1
- Fonts being displayed incorrectly HOT 2
- Attach to process HOT 1
- message to user on max-client HOT 1
- Clear up security implications of default (no `--writable`) mode HOT 1
- Add some compibility for phones and add a local update checker that update it self HOT 1
- Would it be possible to add support for the bell character on the client? HOT 1
- 1.7.5 release reports incorrect version HOT 1
- 1.7.6 reports incorrect version HOT 4
- Segmentation fault and pty_spawn failed on armel device HOT 3
- [HELP] how to fix incorrect word spacing like this? HOT 3
- Programación
- Support headless mode
- How to use --url-arg HOT 2
- Add specifying parameters in the configuration file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ttyd.