Coder Social home page Coder Social logo

Comments (4)

maddie avatar maddie commented on September 6, 2024

TCP pings are used as a fallback in the case of ICMP pings are failed, as indicated in the debug log you've posted:

Failed to ping target host: socket: permission denied
Will try TCP ping  <<<<

I presume you're using Linux? Check the following link for the Failed to ping target host: socket: permission denied error:

https://github.com/sparrc/go-ping#note-on-linux-support

If TCP ping fails too, then please check that the pingURL endpoint is working correctly.

And for the unmarshal failed message in your test infrastructure, which backend are you using?

from speedtest-cli.

rthill avatar rthill commented on September 6, 2024

Yes I am on Linux, but as I don't have root access to any of the servers and firewalls are dropping ICMP packets the go-ping modifications cannot be applied.
The unmarshal failed may be ignored as this is due the modifications I made to getIP.php, essentially I removed everything in relation with external lookups to ipinfo service.

I've checked further and the only difference I could find was a trailing new line at the end of empty.php which is used as pingURL. Removing the trailling new line did solve my issue, but I dont have an explanation for this as there should be no difference between

?>

and

?>

I did also switch to librespeed-cli v1.0.6, thanks for returning json output now on STDOUT!

from speedtest-cli.

maddie avatar maddie commented on September 6, 2024

No problem!

I'm not quite sure about how PHP actually works underneath, but if you're interested, you can also try the Go backend :)

from speedtest-cli.

rthill avatar rthill commented on September 6, 2024

Thanks a lot, I'll give the Go backend a try when I host it available to public or when I create a dedicated server for speedtest purpose.

from speedtest-cli.

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.