Coder Social home page Coder Social logo

Comments (8)

tsl0922 avatar tsl0922 commented on June 5, 2024

Then why it is not a Safari bug?

from ttyd.

hazarjast avatar hazarjast commented on June 5, 2024

from ttyd.

tsl0922 avatar tsl0922 commented on June 5, 2024

If you can reproduced it with: https://libwebsockets.org/testserver, report it to: https://github.com/warmcat/libwebsockets

from ttyd.

hazarjast avatar hazarjast commented on June 5, 2024

from ttyd.

hazarjast avatar hazarjast commented on June 5, 2024

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.

tsl0922 avatar tsl0922 commented on June 5, 2024

if you build ttyd with libwebsockets that compiled with LWS_WITHOUT_EXTENSIONS=ON, then ttyd will not use compression.

from ttyd.

hazarjast avatar hazarjast commented on June 5, 2024

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.

hazarjast avatar hazarjast commented on June 5, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.