Giter VIP home page Giter VIP logo

Comments (3)

annevk avatar annevk commented on June 20, 2024

which means the progress loaded/total will grow to 100% even if the network interrupts.

Two things here:

  1. You're pointing to non-normative text that explains the events. There are no implementation requirements here.
  2. All it says is that once error dispatched you won't see anymore progress events. It doesn't at all validate the behavior you are saying (but even if it did, see 1).

Unless there's an actual problem with the algorithms under send() this seems like an implementation bug to me. Did you file a bug against Firefox?

from xhr.

weihongliang233 avatar weihongliang233 commented on June 20, 2024

@annevk Thanks for your reply. I tried in firefox and got a different result.

During the upload, I press Alt and then File->WokrOffline

After i select WorkOffline, the progress still keeps growing. The difference from chrome is that in firefox it grows with the same speed as before the interruption, acting like the network never interrupts. (While in chrome the the speed becomes much larger after the interruption).
(Interruption happens at 1%)

image-20221122210510498

I also tried Opera. The behaviour differs from chrome and firefox. I didn't find any pattern of its' behaviour ...
So I just show a snapshot. (Interruption happens at 0.1%)
image-20221122211339586

I guess maybe different browsers have different ways to deal with the interruption in this issue. "This is not a bug, it's a feature"

from xhr.

annevk avatar annevk commented on June 20, 2024

I think it's normal that when it's interrupted it will continue to fill the outgoing buffer a bit as it might not immediately get a connection close. And we don't actually track which bytes have been successfully delivered.

But going all the way to 100% does seem surprising, but it seems not all implementations are doing that in which case I'd consider this an implementation bug.

There's certainly nothing in the specification that supports that kind of behavior.

from xhr.

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.