瀏覽代碼

因会引起snmp库崩溃,屏蔽发邮件时的超时设置

guohui 1 年之前
父節點
當前提交
672dbc8477
共有 1 個文件被更改,包括 2 次插入 和 2 次删除
  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, 5L);
-    r = curl_easy_setopt(curl, CURLOPT_TIMEOUT, 30L);
+    //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);