Browse Source

Changed timeout from 0 seconds (died for me constantly) to 15 seconds.
Now I can log into my email. :-)

Tyler Akins 24 năm trước cách đây
mục cha
commit
825c6f8d9b
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      functions/imap_general.php

+ 2 - 1
functions/imap_general.php

@@ -58,7 +58,8 @@
    function sqimap_login ($username, $password, $imap_server_address, $imap_port, $hide) {
    function sqimap_login ($username, $password, $imap_server_address, $imap_port, $hide) {
       global $color, $squirrelmail_language, $HTTP_ACCEPT_LANGUAGE, $onetimepad;
       global $color, $squirrelmail_language, $HTTP_ACCEPT_LANGUAGE, $onetimepad;
 
 
-      $imap_stream = fsockopen ($imap_server_address, $imap_port, &$error_number, &$error_string, 0);
+      $imap_stream = fsockopen ($imap_server_address, $imap_port,
+         &$error_number, &$error_string, 15);
       $server_info = fgets ($imap_stream, 1024);
       $server_info = fgets ($imap_stream, 1024);
       
       
       // Decrypt the password
       // Decrypt the password