From 35ed8aedde3c89bf4952a536a5385466420190f5 Mon Sep 17 00:00:00 2001 From: fred Date: Mon, 19 Dec 2022 19:19:56 +0100 Subject: [PATCH] 60 second timeout --- tools/TW.cache.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/TW.cache.sh b/tools/TW.cache.sh index b215d7f0..b0266130 100755 --- a/tools/TW.cache.sh +++ b/tools/TW.cache.sh @@ -13,13 +13,13 @@ IPFSNODEID=$(ipfs id -f='\n') || ( echo "${ME} : IPFSNODEID MISSING" && exit TUBE=$(head -n 2 ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | tail -n 1 | cut -d ' ' -f 3) ## GETTING LAST TW via IPFS - echo "${ME} : IPFS : ipfs --timeout 12s cat /ipns/${ASTRONAUTENS}"\ - && ipfs --timeout 12s cat /ipns/${ASTRONAUTENS} > ~/.zen/tmp/coucou/${MOATS}.astroindex.html + echo "${ME} : IPFS : ipfs --timeout 60s cat /ipns/${ASTRONAUTENS}"\ + && ipfs --timeout 60s cat /ipns/${ASTRONAUTENS} > ~/.zen/tmp/coucou/${MOATS}.astroindex.html ## GETTING LAST TW via HTTP [[ ! -s ~/.zen/tmp/coucou/${MOATS}.astroindex.html ]] \ && echo "${ME} : WWW : $TUBE/ipns/${ASTRONAUTENS}" \ - && curl -m 12 -so ~/.zen/tmp/coucou/${MOATS}.astroindex.html "$TUBE/ipns/${ASTRONAUTENS}" \ + && curl -m 60 -so ~/.zen/tmp/coucou/${MOATS}.astroindex.html "$TUBE/ipns/${ASTRONAUTENS}" \ || curl -m 1 -so ~/.zen/tmp/${MOATS}.html "$TUBE/ipns/${ASTRONAUTENS}" ## Ask caching ### GOT TW !!