2017-11-22 16 views
0

-max-timeを使用せずに接続した後にサーバからの応答がない場合は、接続を終了したい。max-time以外のカール接続をタイムアウトさせる方法

私のサーバに10GBのファイルをダウンロードして10分かかります。だから私は1Mbファイルをダウンロードしていると接続が停滞している場合、いくつかのタイムアウトは最大時間を待つのではなく、接続を終了する必要がありますか?

答えて

0

あなたは好きかもしれません

-Y, --speed-limit <speed> 
    If a download is slower than this given speed (in bytes per second) for speed-time 
    seconds it gets aborted. speed-time is set with -y, --speed-time and is 30 if not 
    set. 

-y, --speed-time <seconds> 
    If a download is slower than speed-limit bytes per second during a speed-time 
    period, the download gets aborted. If speed-time is used, the default speed-limit 
     will be 1 unless set with -Y, --speed-limit. 
関連する問題