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)
- 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
- 滚动打印日志时终端出现重新连接
- Connection closed On https
- How To implement OSCLinkProvider
- How to use the terminal ip address
- Backspace key sends DEL
- Custom Font Support
- how to use ipv6? 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.