Comparing version 10.1.0 to 10.1.1
CHANGELOG | ||
========= | ||
## 10.1.1 (2024-9-12) | ||
@matteosb Handle synchronous socket.send error in sendUsingDnsCache | ||
## 10.1.0 (2024-9-6) | ||
@@ -5,0 +9,0 @@ |
@@ -66,6 +66,14 @@ const assert = require('assert'); | ||
dnsResolutionData.timestamp = now; | ||
socket.send(buf, 0, buf.length, args.port, dnsResolutionData.resolvedAddress, callback); | ||
try { | ||
socket.send(buf, 0, buf.length, args.port, dnsResolutionData.resolvedAddress, callback); | ||
} catch (socketError) { | ||
callback(socketError); | ||
} | ||
}); | ||
} else { | ||
socket.send(buf, 0, buf.length, args.port, dnsResolutionData.resolvedAddress, callback); | ||
try { | ||
socket.send(buf, 0, buf.length, args.port, dnsResolutionData.resolvedAddress, callback); | ||
} catch (socketError) { | ||
callback(socketError); | ||
} | ||
} | ||
@@ -82,3 +90,7 @@ }; | ||
} else { | ||
socket.send(buf, 0, buf.length, args.port, args.host, callback); | ||
try { | ||
socket.send(buf, 0, buf.length, args.port, args.host, callback); | ||
} catch (socketError) { | ||
callback(socketError); | ||
} | ||
} | ||
@@ -85,0 +97,0 @@ }, |
{ | ||
"name": "hot-shots", | ||
"description": "Node.js client for StatsD, DogStatsD, and Telegraf", | ||
"version": "10.1.0", | ||
"version": "10.1.1", | ||
"author": "Steve Ivy", | ||
@@ -6,0 +6,0 @@ "types": "./types.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
92666
1640