Changeset 98
- Timestamp:
- 03/01/08 22:04:37 (5 years ago)
- Location:
- trunk/Phergie
- Files:
-
- 1 added
- 2 modified
-
Driver/Streams.php (modified) (2 diffs)
-
Plugin/Reconnect.php (added)
-
phergie.ini (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Phergie/Driver/Streams.php
r96 r98 130 130 ); 131 131 132 if ($this->getIni('timeout') !== null) {132 if ($this->getIni('timeout')) { 133 133 stream_set_timeout($this->socket, $this->getIni('timeout') * 60); 134 134 } elseif ($this->getIni('keepalive')) { … … 325 325 public function doQuit($reason = null, $reconnect = false) 326 326 { 327 $this->send(Phergie_Event_Request::TYPE_QUIT, array($reason, $reconnect)); 327 if ($this->queueing) { 328 $this->send(Phergie_Event_Request::TYPE_QUIT, array($reason, $reconnect)); 329 } else { 330 $this->send(Phergie_Event_Request::TYPE_QUIT, array($reason)); 331 } 328 332 } 329 333 -
trunk/Phergie/phergie.ini
r97 r98 33 33 ; gets disconnected from the server, defaults to false. 34 34 ; if this is set to true, you should set timeout value to 6 or above. 35 keepalive = true 35 keepalive = true 36 36 37 37 ; timeout : … … 41 41 ; 0 means it will never time out, but if you use keepalive you should set 42 42 ; this to 6 or above. 43 timeout = 643 timeout = 8 44 44 45 45 ; gender : … … 172 172 173 173 ;----------------------------------------------------------------------------- 174 ; Quit 174 ; Quit 175 175 ;----------------------------------------------------------------------------- 176 176 177 177 ; quit.reason : 178 178 ; custom reason message to use when quitting 179 quit.reason = 179 quit.reason = 180 180 181 181 ;-----------------------------------------------------------------------------