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: ae762437d9eb577d28a7f88d7cc82e5cb872e29a572c8bf3ec977f2602e2d398
4
- data.tar.gz: 4c52bfb0d6a69d5184eea6ad81281dbea87f3bdfcd2a72219de3f95bbcd4b524
3
+ metadata.gz: 3e1fdcc511917b85bfe1ab456733d89e09a24eb4dd4bd085d61ebcf5d52ff4d0
4
+ data.tar.gz: 59365989bd571bd06454513328a5f27c64116f6ced3669bcebb753c94fddfcee
5
5
  SHA512:
6
- metadata.gz: 4be64a96e76ff2335e5d4e9ced1b6fc918eff6a8e5520b7f87660b554989e9ac6beb0841fcd12b218ac33c8776f9f9d3703c95da072b7f66e3ea3095916f66a6
7
- data.tar.gz: 9741eeb18451170efedf920716dd22f1db61c57b71b43e76556d3e18f9303645671e6ee93867b78faefd8e026c2e272891856fc49e4ca95b91b3e791810dbac0
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 = 30
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.
@@ -15,8 +15,8 @@ module Ask
15
15
  # pages that the Local backend cannot.
16
16
  class Jina < Backend
17
17
  BASE_URL = 'https://r.jina.ai'
18
- OPEN_TIMEOUT = 5
19
- READ_TIMEOUT = 30
18
+ OPEN_TIMEOUT = 3
19
+ READ_TIMEOUT = 10
20
20
 
21
21
  def fetch(url)
22
22
  uri = URI("#{BASE_URL}/#{url}")
@@ -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 = 5
22
- READ_TIMEOUT = 15
23
- WRITE_TIMEOUT = 15
24
- # Whole-request cap. A page that can't be read in a minute is a
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 = 60
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.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ask
4
4
  module WebFetch
5
- VERSION = '0.7.6'
5
+ VERSION = '0.7.7'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ask-web-fetch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6
4
+ version: 0.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaka Ruto