X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fsmtp%2Fserv_smtp.c;h=fc43a9624529001f924df11e379d9ef126e565d4;hb=ecdc9e87a3ac4a50299291550c775cfcca783f34;hp=b0572f5a1f7b96f347a4328169d56941e0447970;hpb=a59500939399348dedbe3ff48011ed2b9f681580;p=citadel.git diff --git a/citadel/modules/smtp/serv_smtp.c b/citadel/modules/smtp/serv_smtp.c index b0572f5a1..fc43a9624 100644 --- a/citadel/modules/smtp/serv_smtp.c +++ b/citadel/modules/smtp/serv_smtp.c @@ -1272,7 +1272,10 @@ void smtp_try(const char *key, const char *addr, int *status, } /* If we reach this point, the server is expecting data.*/ - sock_write(&sock, msgtext, msg_size); + sock_write_timeout(&sock, + msgtext, + msg_size, + (msg_size / 128) + 50); if (msgtext[msg_size-1] != 10) { CtdlLogPrintf(CTDL_WARNING, "Possible problem: message did not " "correctly terminate. (expecting 0x10, got 0x%02x)\n",