Comments (2)
ICMP is not directly supported by Erlang and no hex.pm repository for ICMP exists, so testing the TCP connection delay would probably be more straightforward. Consider the delay for DNS resoution, which we don't want to measure. Something like:
:inet.getaddr('ipv4.xnet.space', :inet) # -> {:ok, {78, 46, 175, 29}}
:timer.tc(:gen_tcp, :connect, [{78, 46, 175, 29}, 80, [:binary]])
from cpcache.
Looks like the new experimental socket API does support ICMP:
http://erlang.org/doc/man/socket.html
from cpcache.
Related Issues (20)
- Downloads sometimes stall for small files HOT 2
- archlinux.org mirror list is a single point of failure
- Log download info in dets: Which files have been dowloaded, and how?
- Connection to remote mirror interrupted when other clients are still downloading
- Speed limit for :dev and :test environment applied for :prod HOT 2
- Listen both on 127.0.0.1 as well as ::1
- Refactor HTTP Server functionality into separate module
- Use Elixir releases
- Re-organize test cases, use tags
- Consider using mint instead of hackney HOT 3
- Package from AUR not building HOT 1
- Possible to use add AUR builds to cache? HOT 8
- Resolve HTTP 500 errors caused by bumping eyepatch version HOT 6
- Unable to fetch mirror data HOT 2
- ARM clients? HOT 3
- Custom timeout for clients HOT 4
- Remove hardcoded mirrors in toml file
- Swap mirror during download when too slow
- Re-using connections
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpcache.