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

Function shouldRetryRequest

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

* A retry is sometimes needed on Windows where we may quickly run out of * ephemeral ports. A more robust solution is bumping the MaxUserPort setting * as described here: http://msdn.microsoft.com/en-us/library/aa560610%28v=bts.20%29.aspx * * @param {!number} retries * @param {!Error} err * @r

(retries, err)

Source from the content-addressed store, hash-verified

313 * @return {boolean}
314 */
315function shouldRetryRequest(retries, err) {
316 return retries < MAX_RETRIES && isRetryableNetworkError(err)
317}
318
319/**
320 * @param {!Error} err

Callers 1

sendRequestFunction · 0.85

Calls 1

isRetryableNetworkErrorFunction · 0.85

Tested by

no test coverage detected