[TASK] Introduced addLine() to the buffer class.
[TASK] Made createBuffer function protected in ProtocolHandler classes.
This commit is contained in:
@@ -119,7 +119,7 @@ class Connection_ConnectionPool {
|
||||
if($connectionHandler->canWrite() === TRUE && $connectionHandler->isServer() === FALSE) {
|
||||
$write[] = $connectionSocket;
|
||||
//the line above does not work for freshly connected stuff.
|
||||
//this is the fallback(?) - just write the stuff - no matter what happens.
|
||||
//this is the fallback - just write the stuff - no matter what happens.
|
||||
if($connectionHandler->writeFromBuffer() === FALSE) $this->removeConnectionHandler($connectionHandler);
|
||||
}
|
||||
}
|
||||
@@ -143,7 +143,7 @@ class Connection_ConnectionPool {
|
||||
}
|
||||
break;
|
||||
case "write":
|
||||
//this might still work on active connections that are "in use".
|
||||
//this might still work on active connections that are "in use" and already received data.
|
||||
//however, it does not for freshly connected ones.
|
||||
if($connectionHandler->writeFromBuffer() === FALSE) $this->removeConnectionHandler($connectionHandler);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user