我服务器中的卷曲错误

时间:2017-07-10 08:48:15

标签: curl

我在服务器中遇到如下错误,但在本地工作正常,我怎样才能增加卷曲时间,但是它显示同样的错误。

location / {
    include uwsgi_params;

    uwsgi_pass 127.0.0.1:8000;  

    uwsgi_read_timeout  1200;
    uwsgi_send_timeout  300;
    proxy_read_timeout  300;
}

location /static {
 alias /some-path/your_project/collected_static; 
}

2 个答案:

答案 0 :(得分:0)

-m, --max-time <seconds>
Maximum  time  in  seconds that you allow the whole operation to
take.  This is useful for preventing your batch jobs from  hang‐
ing  for  hours due to slow networks or links going down.  Since
7.32.0, this option accepts decimal values, but the actual time‐
out will decrease in accuracy as the specified timeout increases
in decimal precision.  See also the --connect-timeout option.

If this option is used several times, the last one will be used.

答案 1 :(得分:0)

Curl有config file,。curlrc。检查是否已在此处设置connect-timeout选项。

  

在此处的以下位置检查默认配置文件   顺序:

     
      
  1. curl尝试找到&#34;主目录&#34;:它首先检查CURL_HOME,然后检查HOME环境变量。失败了,它   在类Unix系统上使用getpwuid()(返回主目录)   给出系统中的当前用户)。在Windows上,然后检查   APPDATA变量,或作为最后的手段   &#39;%USERPROFILE%\应用数据&#39;。

  2.   
  3. 在Windows上,如果主目录中没有_curlrc文件,它会检查curl可执行文件放在同一目录中的文件。上   类似Unix的系统,它只会尝试从中加载.curlrc   确定主目录。

  4.