タイムアウトを2秒に設定する場合
command.sh
curl -m 2 -o output https://example.com
デフォルトは300秒(300000ミリ秒)です。
ソース:
#define DEFAULT_CONNECT_TIMEOUT 300000 /* milliseconds == five minutes */
https://github.com/curl/curl/blob/master/lib/connect.h
Go to list of users who liked
タイムアウトを2秒に設定する場合
curl -m 2 -o output https://example.com
デフォルトは300秒(300000ミリ秒)です。
ソース:
#define DEFAULT_CONNECT_TIMEOUT 300000 /* milliseconds == five minutes */
https://github.com/curl/curl/blob/master/lib/connect.h
Register as a new user and use Qiita more conveniently
Go to list of users who liked