diff --git a/.vscode/launch.json b/.vscode/launch.json index 63a53ce..82f954e 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -90,6 +90,7 @@ ], "env": { "GCLOUD_PROJECT": "reader-6b7dc", + "PREFERRED_PROXY_COUNTRY": "us", "LD_PRELOAD": "/usr/local/lib/libcurl-impersonate-chrome.dylib" }, "cwd": "${workspaceFolder}", diff --git a/src/services/curl.ts b/src/services/curl.ts index ae3ca73..355af17 100644 --- a/src/services/curl.ts +++ b/src/services/curl.ts @@ -122,7 +122,7 @@ export class CurlControl extends AsyncService { curl.setOpt(Curl.option.FOLLOWLOCATION, false); curl.setOpt(Curl.option.SSL_VERIFYPEER, false); curl.setOpt(Curl.option.TIMEOUT_MS, crawlOpts?.timeoutMs || 30_000); - curl.setOpt(Curl.option.CONNECTTIMEOUT_MS, 1_600); + curl.setOpt(Curl.option.CONNECTTIMEOUT_MS, 3_000); curl.setOpt(Curl.option.LOW_SPEED_LIMIT, 32768); curl.setOpt(Curl.option.LOW_SPEED_TIME, 5_000); if (crawlOpts?.method) { diff --git a/thinapps-shared b/thinapps-shared index 02279d8..8b78eab 160000 --- a/thinapps-shared +++ b/thinapps-shared @@ -1 +1 @@ -Subproject commit 02279d88bc3940a08a92cb18cf8877d57cb49b82 +Subproject commit 8b78eab54d78868d44065bfc59c413fe6bd4929d