MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / isRetryableNetworkError

Function isRetryableNetworkError

javascript/selenium-webdriver/http/index.js:323–336  ·  view source on GitHub ↗

* @param {!Error} err * @return {boolean}

(err)

Source from the content-addressed store, hash-verified

321 * @return {boolean}
322 */
323function isRetryableNetworkError(err) {
324 if (err && err.code) {
325 return (
326 err.code === 'ECONNABORTED' ||
327 err.code === 'ECONNRESET' ||
328 err.code === 'ECONNREFUSED' ||
329 err.code === 'EADDRINUSE' ||
330 err.code === 'EPIPE' ||
331 err.code === 'ETIMEDOUT'
332 )
333 }
334
335 return false
336}
337
338// PUBLIC API
339

Callers 1

shouldRetryRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected