Changeset 462de2d in github
- Timestamp:
- Apr 17, 2011 5:22:03 AM (2 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 968754b
- Parents:
- f62468d
- Files:
-
- 3 edited
-
CHANGELOG (modified) (2 diffs)
-
program/include/rcube_smtp.php (modified) (2 diffs)
-
program/lib/Net/SMTP.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
ref27a6a r462de2d 2 2 =========================== 3 3 4 - PEAR::Net_SMTP 1.5.2, fixed timeout issue (#1487843) 4 5 - Added plugin hook for request token creation 5 6 - Replace LDAP vars in group queries (#1487837) … … 18 19 - TinyMCE 3.4.1 19 20 - Stateless request tokens. No keep-alive necessary on login page (#1487829) 20 - PEAR::Net_SMTP 1.5.121 21 - Allow multiple concurrent compose sessions 22 22 - Force names of unique constraints in PostgreSQL DDL -
program/include/rcube_smtp.php
re8d5bdc r462de2d 106 106 $this->conn = new Net_SMTP($smtp_host, $smtp_port, $helo_host); 107 107 108 if ($RCMAIL->config->get('smtp_debug'))108 if ($RCMAIL->config->get('smtp_debug')) 109 109 $this->conn->setDebug(true, array($this, 'debug_handler')); 110 110 … … 117 117 $this->conn = null; 118 118 return false; 119 } 120 121 // workaround for timeout bug in Net_SMTP 1.5.[0-1] (#1487843) 122 if (method_exists($this->conn, 'setTimeout') 123 && ($timeout = ini_get('default_socket_timeout')) 124 ) { 125 $this->conn->setTimeout($timeout); 119 126 } 120 127 -
program/lib/Net/SMTP.php
r3e63a0b8 r462de2d 107 107 108 108 /** 109 * Array of socket options that will be passed to Net_Socket::connect(). 110 * @see stream_context_create() 111 * @var array 112 * @access private 113 */ 114 var $_socket_options = null; 115 116 /** 109 117 * The socket I/O timeout value in seconds. 110 118 * @var int … … 157 165 * @param boolean $pipeling Use SMTP command pipelining 158 166 * @param integer $timeout Socket I/O timeout in seconds. 167 * @param array $socket_options Socket stream_context_create() options. 159 168 * 160 169 * @access public … … 162 171 */ 163 172 function Net_SMTP($host = null, $port = null, $localhost = null, 164 $pipelining = false, $timeout = 0 )173 $pipelining = false, $timeout = 0, $socket_options = null) 165 174 { 166 175 if (isset($host)) { … … 176 185 177 186 $this->_socket = new Net_Socket(); 187 $this->_socket_options = $socket_options; 178 188 $this->_timeout = $timeout; 179 189 … … 406 416 $this->_greeting = null; 407 417 $result = $this->_socket->connect($this->host, $this->port, 408 $persistent, $timeout); 418 $persistent, $timeout, 419 $this->_socket_options); 409 420 if (PEAR::isError($result)) { 410 421 return PEAR::raiseError('Failed to connect socket: ' . … … 418 429 * and all other socket operations. 419 430 */ 420 if (PEAR::isError($error = $this->setTimeout($this->_timeout))) { 421 return $error; 431 if ($this->_timeout > 0) { 432 if (PEAR::isError($error = $this->setTimeout($this->_timeout))) { 433 return $error; 434 } 422 435 } 423 436
Note: See TracChangeset
for help on using the changeset viewer.
