Coder Social home page Coder Social logo

Comments (35)

psq avatar psq commented on May 5, 2024

I pushed the code with a package.json and an example of a file that hangs (there are others, so it may just be the fact it is quite large)

https://github.com/psq/comp-bug

from compression.

dougwilson avatar dougwilson commented on May 5, 2024

Awesome @psq ! I'm looking into it right now :)

/cc @robbywashere

from compression.

psq avatar psq commented on May 5, 2024

btw, tested with node 0.10.17 and 0.10.28, same result

from compression.

dougwilson avatar dougwilson commented on May 5, 2024

So far I cannot repro on 0.10.28 on Windows :(

from compression.

dougwilson avatar dougwilson commented on May 5, 2024

Chrome 35

from compression.

dougwilson avatar dougwilson commented on May 5, 2024

It is also not reproducing for me on node 0.10.28 on Ubuntu 12.04.4 using Chrome 35. Can you offer a patch or an insight into what is causing the issue?

from compression.

steida avatar steida commented on May 5, 2024

Please revert change and publish it to npm. We can investigate it later.

from compression.

psq avatar psq commented on May 5, 2024

interesting this is only a mac issue then. I'll track down which commit introduced the regression. My guess would be on that one: 5426d13, but I'll double check in a few minutes.

from compression.

dougwilson avatar dougwilson commented on May 5, 2024

@psq just to confirm, when you run a clean clone of what you pushed and run the steps you said, you are able to reproduce the issue on Chrome using Mac? I just want to verify that you did indeed make sure the sample you uploaded reproduced the issue :)

from compression.

psq avatar psq commented on May 5, 2024

@dougwilson yes, I can reproduce the problem with both clone and safari with 1.0.4, and directly using the content of git (see above comment that identifies the commit).

from compression.

psq avatar psq commented on May 5, 2024

Also, same behavior with firefox (29.0.1)

from compression.

dougwilson avatar dougwilson commented on May 5, 2024

Yea, I tried Firefox too on both and it worked fine. I just mentioned Chrome because you said that was where it was broken.

from compression.

steida avatar steida commented on May 5, 2024

OSX Chrome and Safari here.

from compression.

dougwilson avatar dougwilson commented on May 5, 2024

So you serve web site from your Mac OS X laptop? Has anyone been able to reproduce on a non-Mac machine so far?

from compression.

psq avatar psq commented on May 5, 2024

people here develop using macs (but prod server is ubuntu).

from compression.

steida avatar steida commented on May 5, 2024

No, but people can blindly deploy broken app. Not everyone is using robust integration tests.

from compression.

psq avatar psq commented on May 5, 2024

tracing down what is happening, or not happening. once I have enough traces, I'll get a system where it works so I can compare.

from compression.

dougwilson avatar dougwilson commented on May 5, 2024

Seriously guys, can someone debug this on Mac OS X to come up with a patch or an explanation as to what is going on, rather than arguing to revert this? I'm trying to look into it to figure it out, by the arguing is taking all my attention, and it's not easy since I can't reproduce it, either. Please let's do something constructive.

from compression.

Svjard avatar Svjard commented on May 5, 2024

Same issue, running node 0.10.28 and 0.11.13 running from Debian 6 and 7. I'm working on tracking it down in the code though. Try to get back to you asap.

from compression.

dougwilson avatar dougwilson commented on May 5, 2024

I have just got it to reproduce. I am looking into it right now and should have a working patch very soon.

from compression.

dougwilson avatar dougwilson commented on May 5, 2024

I have a fix and am validating it.

from compression.

Svjard avatar Svjard commented on May 5, 2024

Awesome thanks.

from compression.

dougwilson avatar dougwilson commented on May 5, 2024

Hi, everyone. Can I have at least one other person verify that the commit c73f1f3 fixes the issue?

from compression.

psq avatar psq commented on May 5, 2024

yes! this fixes this for me on mac with chrome/safari.

FYI, I could also reproduce the issue with xubuntu 13.10 and 14.04. Will double check there as well.

from compression.

psq avatar psq commented on May 5, 2024

also works on xubuntu 14.04 with firefox. Thank you very much for the fix, @dougwilson

from compression.

dougwilson avatar dougwilson commented on May 5, 2024

OK. I'm releasing this as 1.0.5 right now and then having it work up through connect 2/express 3.

from compression.

dougwilson avatar dougwilson commented on May 5, 2024

Can anyone re-try on the now-current master? There was an issue with the patch when requests were not compressed. Just want to confirm instead of rushing something out.

from compression.

psq avatar psq commented on May 5, 2024

sure, will do right now.

from compression.

psq avatar psq commented on May 5, 2024

looks like it works, and chrome shows this in the reply: Content-Encoding:gzip

full headers for request/response:

Remote Address:127.0.0.1:1234
Request URL:http://127.0.0.1:1234/bootstrap.min.css
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8,fr;q=0.6
Connection:keep-alive
Host:127.0.0.1:1234
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36
Response Headersview source
Accept-Ranges:bytes
Cache-Control:public, max-age=0
Connection:keep-alive
Content-Encoding:gzip
Content-Type:text/css; charset=UTF-8
Date:Wed, 04 Jun 2014 01:06:37 GMT
ETag:W/"988964153"
Last-Modified:Tue, 03 Jun 2014 22:51:07 GMT
Transfer-Encoding:chunked
Vary:Accept-Encoding
X-Powered-By:Express

from compression.

steida avatar steida commented on May 5, 2024

Works for me too.

from compression.

dougwilson avatar dougwilson commented on May 5, 2024

OK, thanks everyone.I was already planning to move this dumb res streaming intercepting into it's own library. Now it's even more complicated :D

from compression.

dougwilson avatar dougwilson commented on May 5, 2024

1.0.5 published to npm.

from compression.

psq avatar psq commented on May 5, 2024

thank you again. Also tested the npm with our full app, works great.

from compression.

dougwilson avatar dougwilson commented on May 5, 2024

OK, everyone, the whole connect 2/express 3 chain has been updated with the fix, if anyone is still using the version of compress that is bundled.

from compression.

robbywashere-zz avatar robbywashere-zz commented on May 5, 2024

It works great on my end. Thanks a lot doug!

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.