Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
increaing attach timeout to 10s; fix for #17
Browse files Browse the repository at this point in the history
  • Loading branch information
weinand committed Dec 3, 2015
1 parent 1a39ed1 commit ea8fafb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/node/nodeDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export class NodeDebugSession extends DebugSession {
private static PROTO = '__proto__';
private static DEBUG_EXTENSION = 'debugExtension.js';
private static NODE_TERMINATION_POLL_INTERVAL = 3000;
private static ATTACH_TIMEOUT = 10000;

private static NODE_SHEBANG_MATCHER = new RegExp('#! */usr/bin/env +node');

Expand Down Expand Up @@ -492,7 +493,7 @@ export class NodeDebugSession extends DebugSession {
/*
* shared code used in launchRequest and attachRequest
*/
private _attach(response: DebugProtocol.Response, port: number, timeout: number = 5000): void {
private _attach(response: DebugProtocol.Response, port: number, timeout: number = NodeDebugSession.ATTACH_TIMEOUT): void {
let connected = false;
const socket = new Net.Socket();
socket.connect(port);
Expand Down

0 comments on commit ea8fafb

Please sign in to comment.