fringd / zipline

A gem that lets you stream a zip file from rails
MIT License
289 stars 68 forks source link

Chrome multiple download wierd freeze... #94

Closed ConfusedVorlon closed 9 months ago

ConfusedVorlon commented 9 months ago

Firstly - thanks for this gem. It's so much better than my previous approach of downloading things, zipping them and sending them up again to S3

I did find one super-wierd thing though.

If I kick off more than one download on chrome - then they both freeze.

Initially - I assumed this was a problem at the server, but multiple downloads from different browsers, or indeed multiple downloads from Safari are fine.

So - this may just be a Chrome bug, but I wondered if you had any ideas or insight? It would be nice to have a fix.

This is Chrome 120.0.6099.216 (Official Build) (arm64) on Mac.

Thanks.

ConfusedVorlon commented 9 months ago

additional wierdness - while this is frozen, then any normal pages on the domain fail to load as well (in Chrome) After about 5 mins, normal service resumes. I guess Chrome times-out the downloads.

julik commented 9 months ago

Could you verify whether Chrome connects using just one connection and HTTP/2 of some kind, or HTTP 1.1? It might be that there is some demultiplexing versus other browsers which means that there is just 1 connection open to your server from Chrome, and multiple to other browsers

ConfusedVorlon commented 9 months ago

Checking now - and I don't see the issue. It's a different computer, and updated Chrome, but I can't replicate it. fwiw - the site does support http2, and the downloads (now at least) are using http2

Thanks for responding