Comments (2)
Nice catch.
Adding another exeception handler in _send()
except socket.error as e:
print("General failure (%s)" % str(e))
return
Should be OK now.
Give it a test and if all seems fine, I'll close the issue. :)
from python-ping.
Executes properly for me!
$ sudo python2 ping.py -T
Running PYTHON PING test case.
PYTHON PING 127.0.0.1 (127.0.0.1): 64 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.08 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.13 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.11 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.12 ms
----127.0.0.1 PYTHON PING Statistics----
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip (ms) min/avg/max = 0.1/0.1/0.1
PYTHON PING 8.8.8.8 (8.8.8.8): 64 data bytes
General failure ([Errno 65] No route to host)
General failure ([Errno 65] No route to host)
General failure ([Errno 65] No route to host)
General failure ([Errno 65] No route to host)
^C
----8.8.8.8 PYTHON PING Statistics----
0 packets transmitted, 0 packets received, 100.0% packet loss
(Terminated with signal 2)
from python-ping.
Related Issues (15)
- do_one is named obtusely HOT 1
- quiet and verbose_ping cannot ping continuously HOT 3
- The current experimental generator functionality breaks myStats. HOT 5
- quiet_ping() loops HOT 8
- We are dropping the TTL data during execution. HOT 5
- Should we submit a pull to samuel/python-ping? HOT 2
- The current repository name breaks python import structures in python3 and above HOT 5
- The current license has outdated information HOT 1
- single_ping blocks threading.Thread.join HOT 1
- There is a set of logic in single_ping that potentially blocks out ipv6 decoding HOT 1
- Doesn't work anymore on Windows HOT 3
- Needs more 3.6 compatibility
- Broadcast Pings do not appear to be working HOT 1
- How to hide 'Request timed out' message when calling quiet_ping() ? HOT 2
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 python-ping.