Giter Site home page Giter Site logo

Comments (11)

dougwilson avatar dougwilson commented on April 27, 2024

I don't have a Mac so I'm not sue I will be able to troubleshoot this for you, unfortunately. Would you be willing to dig into the underlying cause?

from compression.

ICarryTheDustOfAJourney avatar ICarryTheDustOfAJourney commented on April 27, 2024

Thx! How can I support you?
Here is a related post on SO

from compression.

dougwilson avatar dougwilson commented on April 27, 2024

Gettng a packet capture of the traffic at the server and the same traffic at the client would help me see if (1) there are any obvious issues with the response from a standards pov and (2) if the response was altered between those two points.

from compression.

ICarryTheDustOfAJourney avatar ICarryTheDustOfAJourney commented on April 27, 2024

I'll try to get a capture, but that may take a while. What format/tool?
Not sure how I can get a tool on Mac OS side, I'm not a Mac user either.

from compression.

dougwilson avatar dougwilson commented on April 27, 2024

I am about to go to work, so won't likely be able to respond for the rest of the day anyhow. The tool you use doesn't matter; whatever works on that OS. Ideally a pcap file is good, but if there is a different format you are restricted to, just upload that and we can work though with that.

from compression.

ICarryTheDustOfAJourney avatar ICarryTheDustOfAJourney commented on April 27, 2024

It occurs only in combination with http2 (https:) using spdy. Http works fine with compression. Is an TLS-encripted capture of any use for you? If not, what else?

I'm new to this level of debuging. Sorry when asking silly questions here.

Update: It works when using module https instead of spdy. Could also be a spdy issue. Can't use HTTP2 for the moment since it is seems to be no drop-in replacement for spdy/https.

from compression.

dougwilson avatar dougwilson commented on April 27, 2024

So I think you are on track to narrow down on what the issue could be happening from. A packet capture can be used even if it is encrypted, but just needs to be decrypted. Decrypting requires having the symmetric key that was exchanged or just having a capture of the ssl handshake and the private key from the server.

Of course if that is a real server with a real cert, don't share the private key, but you could even decrypt locally and then share the decrypted capture, for instance. The Wireshark tools makes it pretty straight forward, for example.

from compression.

ICarryTheDustOfAJourney avatar ICarryTheDustOfAJourney commented on April 27, 2024

OK, I installed wireshark and have to find out, how to decrypt using the key I have.
This may take a while, since I'm rather busy atm.

from compression.

ICarryTheDustOfAJourney avatar ICarryTheDustOfAJourney commented on April 27, 2024

After throwing some hours against it, I'm giving up for the moment:
I followed https://wiki.wireshark.org/TLS?action=show&redirect=SSL#TLS_Decryption

  • I'm not able to decrypt using a SSLKEYLOGFILE, Safari's doesn't seem to support that.
  • I'm not able to decrypt using the the server's private key .

So I'll live for the moment with Safari on Mac OS users not compressing and keep recommending Chrome & FF, if compression matters. Thx for your time.

No problem here if you close this

from compression.

ryhinchey avatar ryhinchey commented on April 27, 2024

Update: It works when using module https instead of spdy. Could also be a spdy issue. Can't use HTTP2 for the moment since it is seems to be no drop-in replacement for spdy/https.

@ICarryTheDustOfAJourney I did a little digging and came across this post from Apple:
https://webkit.org/blog/8569/removing-legacy-spdy-protocol-support/

What version of macOS and iOS were/are you testing on? I wonder if this issue could be replicated in recent versions of these browsers? With SPDY being deprecated for some time, it's certainly possible you hit a bug that doesn't exist in a newer version of Safari.

If you have a minimal reproducible example, I'd be happy to test it as well.

from compression.

ryhinchey avatar ryhinchey commented on April 27, 2024

Closing this issue as I don't think there's anything we can do in compression for this at the moment and is probably an issue related to spdy and safari. as always, feel free to re-open if there's a reproducible issue here.

from compression.

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.