Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

Commit ecbe99c

Browse files
authored
Socket connection fix: destroy() used instead of abort() (#674)
Signed-off-by: Rajat Sharma <[email protected]> Signed-off-by: Akshat Khandelwal <[email protected]>
1 parent 1ff998a commit ecbe99c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fabric-ca-client/lib/FabricCAClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ const FabricCAClient = class {
311311
request.on('socket', (socket) => {
312312
socket.setTimeout(CONNECTION_TIMEOUT);
313313
socket.on('timeout', () => {
314-
request.abort();
314+
request.destroy();
315315
reject(new Error(`Calling ${api_method} endpoint failed, CONNECTION Timeout`));
316316
});
317317
});

0 commit comments

Comments
 (0)