Giter Site home page Giter Site logo

ping has no raw output about globalping HOT 9 CLOSED

jsdelivr avatar jsdelivr commented on June 8, 2024
ping has no raw output

from globalping.

Comments (9)

zarianec avatar zarianec commented on June 8, 2024

This happens when you request too many packets from a slow target. We use -w 3 flag which sets the "global" command timeout to 3 seconds. In that case, ping will exit with a non-zero code, and probe:measurement:result message will not be emitted.

from globalping.

jimaek avatar jimaek commented on June 8, 2024

Ok, then I guess we need to scale the global timeout based on packets? Maybe make it equal to packet count?
If we have 15 max packets then that means 15 max seconds.
Or set a static higher limit?
What do you think?

from globalping.

zarianec avatar zarianec commented on June 8, 2024

Timeout equal to packets count will make it impossible to ping the high-latency targets even with a smaller amount of packets. In your example, ping with 1 packet will have a 1-second global timeout.
So, I vote for a static but higher timeout. 10-15 seconds?

But we still must think about handling command errors because a higher timeout will only mask the real issue.

from globalping.

jimaek avatar jimaek commented on June 8, 2024

Yes, errors are important to be handled correctly, we have a separate issue about that.
Then lets set 15 seconds as new limit to fix this issue

from globalping.

patrykcieszkowski avatar patrykcieszkowski commented on June 8, 2024

Timeout equal to packets count will make it impossible to ping the high-latency targets even with a smaller amount of packets. In your example, ping with 1 packet will have a 1-second global timeout.

we can always use Math.max() and pick higher value

from globalping.

jimaek avatar jimaek commented on June 8, 2024

But max of what values?

from globalping.

patrykcieszkowski avatar patrykcieszkowski commented on June 8, 2024

Match.max(3, packets).

It just picks the greater value.

3 - the old timeout
packets - timeout based on packets count, that you proposed

or make it 15s, just for good measure.

from globalping.

jimaek avatar jimaek commented on June 8, 2024

Yeah Max wont help with slow servers, it would have to be some a lot more complex algorithm.
So I think the easiest fix is static 15s for now and then monitor and see if it needs something better than that

from globalping.

patrykcieszkowski avatar patrykcieszkowski commented on June 8, 2024

increased timeout to 15s.

from globalping.

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.