We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 379f926 commit 9fa18bcCopy full SHA for 9fa18bc
packages/collector/src/announceCycle/agentHostLookup.js
@@ -173,6 +173,11 @@ function checkHost(host, cb) {
173
}
174
175
req.on('timeout', function onTimeout() {
176
+ if (req.destroyed) {
177
+ return;
178
+ }
179
+
180
+ req.destroy();
181
handleCallback(
182
new Error(`The attempt to connect to the Instana host agent on ${host}:${agentOpts.port} has timed out`)
183
);
@@ -182,6 +187,11 @@ function checkHost(host, cb) {
187
req.setTimeout(requestTimeout);
188
184
189
req.on('error', err => {
190
191
192
193
194
185
195
186
196
new Error(
197
`The attempt to connect to the Instana host agent on ${host}:${agentOpts.port} has failed with the following ` +
0 commit comments