remove stream non-blocking - any micro timeout break connection
This commit is contained in:
parent
b26491cdc9
commit
7d2ef0ee95
@ -457,15 +457,7 @@ class XMPPHP_XMLStream {
|
||||
} else if ($updated > 0) {
|
||||
$buff = '';
|
||||
do {
|
||||
if ($buff != '') {
|
||||
//disable blocking for now because fread() will
|
||||
// block until the 4k are full if we already
|
||||
// read a part of the packet
|
||||
stream_set_blocking($this->socket, 0);
|
||||
}
|
||||
$part = fread($this->socket, 4096);
|
||||
stream_set_blocking($this->socket, 1);
|
||||
|
||||
if (!$part) {
|
||||
if($this->reconnect) {
|
||||
$this->doReconnect();
|
||||
|
Loading…
Reference in New Issue
Block a user