1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-07 13:46:38 +02:00

exit prematurely when data has been written to avoid unnecessary time check @Seldaek

This commit is contained in:
Danilo Silva
2015-10-28 16:11:06 +01:00
parent 6f19ba38ad
commit 65cc3083b6

View File

@@ -321,6 +321,8 @@ class SocketHandler extends AbstractProcessingHandler
if ($sent !== $this->lastSentBytes) {
$this->lastWritingAt = time();
$this->lastSentBytes = $sent;
return false;
} else {
usleep(100);
}