From 1b504a601b35de653e6af82df21cd7e20aa965ae Mon Sep 17 00:00:00 2001 From: cxl Date: Tue, 26 Aug 2014 07:24:22 +0000 Subject: [PATCH] Core/SMTP: RequestTimeout fixed git-svn-id: svn://ultimatepp.org/upp/trunk@7606 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/SMTP/Smtp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uppsrc/Core/SMTP/Smtp.cpp b/uppsrc/Core/SMTP/Smtp.cpp index ed6c9eb4e..f313ea028 100644 --- a/uppsrc/Core/SMTP/Smtp.cpp +++ b/uppsrc/Core/SMTP/Smtp.cpp @@ -339,6 +339,8 @@ bool Smtp::Send(const String& msg_) if(!Connect(host, Nvl(port, ssl ? 465 : 25))) throw Exc(Format("Cannot open socket %s:%d: %s", host, port, GetErrorDesc())); + GlobalTimeout(request_timeout); + String ans; if(ssl)