ask-web-fetch 0.7.6 → 0.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3e1fdcc511917b85bfe1ab456733d89e09a24eb4dd4bd085d61ebcf5d52ff4d0
|
|
4
|
+
data.tar.gz: 59365989bd571bd06454513328a5f27c64116f6ced3669bcebb753c94fddfcee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ab5dfc8d25e5c9550a08981382a041e148291b6d83ab40c9f375404c7efd35f08d08b6444b10fabe4a8035773ea49606dc96a6c73211aeb7cd4f89e529ca359
|
|
7
|
+
data.tar.gz: 742d576e4a4f0a71ab89c47d177107f991c384795eef0775fc8579c96d6cbb41688cb30cabfb13d4d861bf6e665c54ee662998e44a66da64904955406562818f
|
|
@@ -45,7 +45,7 @@ module Ask
|
|
|
45
45
|
class Browser < Backend
|
|
46
46
|
# Seconds to let a Cloudflare-style challenge auto-solve before
|
|
47
47
|
# giving up (tunable via Browser.challenge_timeout).
|
|
48
|
-
CHALLENGE_TIMEOUT =
|
|
48
|
+
CHALLENGE_TIMEOUT = 10
|
|
49
49
|
|
|
50
50
|
# Seconds to wait for the network to go quiet after the page loads,
|
|
51
51
|
# so lazy-loaded content is in before we read the DOM.
|
data/lib/ask/web_fetch/http.rb
CHANGED
|
@@ -18,12 +18,12 @@ module Ask
|
|
|
18
18
|
# TLS) all surface as Ask::WebFetch::TimeoutError, the transient
|
|
19
19
|
# bucket, whatever their underlying class.
|
|
20
20
|
class Http
|
|
21
|
-
CONNECT_TIMEOUT =
|
|
22
|
-
READ_TIMEOUT =
|
|
23
|
-
WRITE_TIMEOUT =
|
|
24
|
-
# Whole-request cap. A page that can't be read in
|
|
21
|
+
CONNECT_TIMEOUT = 3
|
|
22
|
+
READ_TIMEOUT = 8
|
|
23
|
+
WRITE_TIMEOUT = 8
|
|
24
|
+
# Whole-request cap. A page that can't be read in 20s is a
|
|
25
25
|
# problem page, not a stall worth a crawl worker.
|
|
26
|
-
OPERATION_TIMEOUT =
|
|
26
|
+
OPERATION_TIMEOUT = 20
|
|
27
27
|
# Retries per request, on top of the crawl ledger's own auto-heal
|
|
28
28
|
# rounds. GETs are idempotent; a couple of cheap retries beat a full
|
|
29
29
|
# ledger round-trip for transient flakiness.
|