mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-07 21:56:31 +02:00
exit prematurely when data has been written to avoid unnecessary time check @Seldaek
This commit is contained in:
@@ -321,6 +321,8 @@ class SocketHandler extends AbstractProcessingHandler
|
|||||||
if ($sent !== $this->lastSentBytes) {
|
if ($sent !== $this->lastSentBytes) {
|
||||||
$this->lastWritingAt = time();
|
$this->lastWritingAt = time();
|
||||||
$this->lastSentBytes = $sent;
|
$this->lastSentBytes = $sent;
|
||||||
|
|
||||||
|
return false;
|
||||||
} else {
|
} else {
|
||||||
usleep(100);
|
usleep(100);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user