Comments (8)
Then why it is not a Safari bug?
from ttyd.
from ttyd.
If you can reproduced it with: https://libwebsockets.org/testserver, report it to: https://github.com/warmcat/libwebsockets
from ttyd.
from ttyd.
Looking at other projects which have hit this issue, it seems a workaround may be to disable compression in the WebSocket session: coder/coder#8087 .
Is such a workaround possible with TTYD's use of LibWebSockets? Please let me know if there is anything I can do to help test. Thank you!
I have reported the issue here to LibWebSockets as well, as you indicated: warmcat/libwebsockets#3065 .
from ttyd.
if you build ttyd with libwebsockets that compiled with LWS_WITHOUT_EXTENSIONS=ON
, then ttyd will not use compression.
from ttyd.
if you build ttyd with libwebsockets that compiled with
LWS_WITHOUT_EXTENSIONS=ON
, then ttyd will not use compression.
I have used your provided 'cross-build.sh' to compile without extensions as instructed but the resulting TTYD binary shows the same behavior with Safari (i.e. timeout when trying to connect). I notice that on the older Safari versions when it was working the 'Sec-WebSocket-Extensions' listed 'x-webkit-deflate-frame' vs. 'permessage-deflate' which the non-working Safari 17 shows. Not sure if this is significant or not. No movement yet on the bug report submitted to LWS.
from ttyd.
Spent more time testing this between Safari versions on different configurations and found that Safari 17.x seems to only have issues connecting to an WebSocket session when there is a proxy being used between Safari and TTYD (whether it be SSL or just plain HTTP). On older Safari versions (15.x/16.x/17.x) in this proxy scenario, turning off NSURLSession WebSocket (under 'Experimental Features') allows TTYD to load as expected so there still seems to be some issue between this and LWS. However, since I can get Safari 17.x TTYD connections to work by removing the proxy from my scenario that will work until I can spend more time figuring out why NSURLSession WebSocket under Safari seems to break proxied/tunneled WebSocket sessions.
from ttyd.
Related Issues (20)
- Is it possible to support custom command interaction? HOT 2
- Feature: web-based port forwarding for http services HOT 1
- Non-ASCII characters lost in tmux HOT 7
- Ability to set disableLeaveAlert=true in query string HOT 19
- How to identify if shell is inactive HOT 1
- Caddyfile example HOT 1
- ttyd server does not respond to user input HOT 1
- how to make it can get .gitconfig HOT 3
- Start command before connection is made HOT 3
- mbedtls_ssl_conf_alpn_protocols absent HOT 1
- SSL certificate and key for uhttpd on OpenWrt are not recognized. HOT 2
- No reply to commands for ttyd running at win10 HOT 2
- ttyd crashes on windows HOT 4
- 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
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.