hoptracker 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/hoptracker/prober.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3b2d45f18ef14df49e8ca3a2213147a84da7f846e7a139057eea1425ba605472
|
|
4
|
+
data.tar.gz: e1b54172ac32ed799919288f81e12f2d9b196e9c5dc88e55a53952994417a9a3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a1e2035b7f493a921d8cfdb6c3770a8d8e07392bddb0d3a790f9257f4a2a9d2c45995f423c2a60883c2fb0cd2d8b3af7e3d2fcf6f2325005a122ab58c9a51aad
|
|
7
|
+
data.tar.gz: e13cde78fb81531cc665ae319925139b973bea0ddb093e30312754c8a575e9ce2a8421079e23fb34f9601f79ffdb63b591f8722e6b0ba5d2d5c9b690f1a2589f
|
data/lib/hoptracker/prober.rb
CHANGED
|
@@ -306,9 +306,12 @@ module HopTracker
|
|
|
306
306
|
|
|
307
307
|
begin
|
|
308
308
|
@socket.sendmsg "#{payload_length_information}#{payload}#{"\0" * padding_length}", 0
|
|
309
|
+
rescue Errno::ECONNREFUSED => e
|
|
310
|
+
# This error message only seems to occur once, but it cancels the sending process. Since it does not occur again after one time, the packet should simply be sent again.
|
|
311
|
+
retry
|
|
309
312
|
rescue Errno::EMSGSIZE => e
|
|
310
313
|
# Ignore MTU errors when sending, as we process the error later when receiving the error message
|
|
311
|
-
|
|
314
|
+
warn "Failed to send probe: #{e.message} - that's okay!"
|
|
312
315
|
end
|
|
313
316
|
probes << {
|
|
314
317
|
send_time: Time.now
|