File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -915,14 +915,13 @@ export class Util {
915915 if ( err ) {
916916 const lowerCaseMessage = err . message . toLowerCase ( ) ;
917917 const isTLsTimeoutOrConnReset =
918- lowerCaseMessage . includes ( 'tls handshake' ) ||
919- lowerCaseMessage . includes ( 'timed out' ) ||
920- lowerCaseMessage . includes ( 'etimedout' ) ||
921- lowerCaseMessage . includes ( 'econnreset' ) ;
922- if ( isTLsTimeoutOrConnReset ) {
923- const timeOutError = new Error (
924- 'Request or TLS handshake timed out. This may be due to CPU starvation or a temporary network issue.'
918+ / t l s h a n d s h a k e | t i m e d o u t | e t i m e d o u t | e c o n n r e s e t / . test (
919+ lowerCaseMessage
925920 ) ;
921+ if ( isTLsTimeoutOrConnReset ) {
922+ const TLS_TIMEOUT_ERROR_MESSAGE =
923+ 'Request or TLS handshake timed out. This may be due to CPU starvation or a temporary network issue.' ;
924+ const timeOutError = new Error ( TLS_TIMEOUT_ERROR_MESSAGE ) ;
926925 err = timeOutError ;
927926 }
928927 }
You can’t perform that action at this time.
0 commit comments