Bug #51653 [Opn->Fbk]: setting imap_timeout() too low can lock directories

From: Date: Fri, 16 Oct 2020 13:54:04 +0000
Subject: Bug #51653 [Opn->Fbk]: setting imap_timeout() too low can lock directories
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229662@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=51653&edit=1 ID: 51653 Updated by: cmb@php.net Reported by: travis at shadowglen dot com Summary: setting imap_timeout() too low can lock directories -Status: Open +Status: Feedback Type: Bug Package: IMAP related Operating System: Linux PHP Version: 5.2.13 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: This doesn't look like a bug in PHP (but rather in libc-client), or do you have evidence otherwise? Previous Comments: ------------------------------------------------------------------------ [2010-04-24 14:48:38] travis at shadowglen dot com Description: ------------ The following was placed at the top of a mailing list script, which logs into an account to check for messages, then repackages the message and sends it to the mailing list subscribers using the mail() function. imap_timeout(IMAP_OPENTIMEOUT, 2); imap_timeout(IMAP_READTIMEOUT, 2); imap_timeout(IMAP_WRITETIMEOUT, 2); imap_timeout(IMAP_CLOSETIMEOUT, 2); Later in the script, I call imap_open(), specifically using connection to {localhost:993/ssl/no-validate-cert} if this makes a difference, unsure. Periodically ran into an issue where the mail() call would simply stop returning true -- but for the directory the script is located in only. I set up a second script, that simply tests the mail() function -- I place it in the directory where the locked-up script is located and mail() returns false. Any other directory, mail() will return true. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=51653&edit=1

« previous php.bugs (#229662) next »