Explorar o código

修改超时参数

guohui hai 1 ano
pai
achega
5dc7bc2b21
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      pro/src/mail.c

+ 2 - 2
pro/src/mail.c

@@ -204,8 +204,8 @@ static int send_mail(mail_send_t *send, void *addr, char *sub, char *body, char
         curl_easy_setopt(curl, CURLOPT_MIMEPOST, mm);
     }
 
-    r = curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 3L);
-    r = curl_easy_setopt(curl, CURLOPT_TIMEOUT, 5L);
+    r = curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 5L);
+    r = curl_easy_setopt(curl, CURLOPT_TIMEOUT, 30L);
     r = curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
     r = curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients);
     r = curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);