mirror of
https://github.com/mempool/mempool.git
synced 2025-03-17 13:21:55 +01:00
ops: Fix premature socket close bug in nginx cache warmer scripts
This commit is contained in:
parent
8b70e65717
commit
30003348ce
@ -4,7 +4,7 @@ hostname=$(hostname)
|
||||
heat()
|
||||
{
|
||||
echo "$1"
|
||||
curl -i -s "$1" | head -1
|
||||
curl -o /dev/null -s "$1"
|
||||
}
|
||||
|
||||
heatURLs=(
|
||||
|
@ -6,19 +6,19 @@ slugs=(`curl -sSL https://${hostname}/api/v1/mining/pools/3y|jq -r -S '(.pools[]
|
||||
warmSlurp()
|
||||
{
|
||||
echo "$1"
|
||||
curl -i -s -H 'User-Agent: Googlebot' "$1" | head -1
|
||||
curl -o /dev/null -s -H 'User-Agent: Googlebot' "$1"
|
||||
}
|
||||
|
||||
warmUnfurl()
|
||||
{
|
||||
echo "$1"
|
||||
curl -i -s -H 'User-Agent: Twitterbot' "$1" | head -1
|
||||
curl -o /dev/null -s -H 'User-Agent: Twitterbot' "$1"
|
||||
}
|
||||
|
||||
warm()
|
||||
{
|
||||
echo "$1"
|
||||
curl -i -s "$1" | head -1
|
||||
curl -o /dev/null -s "$1"
|
||||
}
|
||||
|
||||
warmSlurpURLs=(
|
||||
|
Loading…
x
Reference in New Issue
Block a user