Add retry on EPIPE error (#400)
This commit is contained in:
Родитель
af1f27d71e
Коммит
b6185277e0
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"mocha.files.glob":"test/legacy/**/*.js",
|
||||
"editor.formatOnSave": true,
|
||||
"typescript.tsdk": "node_modules/typescript/lib"
|
||||
"typescript.tsdk": "node_modules/typescript/lib",
|
||||
"workbench.colorCustomizations": {}
|
||||
}
|
|
@ -74,6 +74,12 @@ const WindowsNoRouteTohost = 10065;
|
|||
*/
|
||||
const LinuxConnectionReset = "ECONNRESET";
|
||||
|
||||
// Node Error Codes
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
const BrokenPipe = "EPIPE";
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
|
@ -94,7 +100,8 @@ const CONNECTION_ERROR_CODES = [
|
|||
WindowsHostIsDown,
|
||||
WindowsNoRouteTohost,
|
||||
LinuxConnectionReset,
|
||||
TimeoutErrorCode
|
||||
TimeoutErrorCode,
|
||||
BrokenPipe
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче