You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This patch fixes two issues in JournalReader.Read():
1. The return value of copy() was ignored and JournalReader.Read() was
returning the wrong amount of bytes copied.
2. JournalReader implements the Reader interface so it must be able to read a
specific amount of bytes. Journald on the other hand only allows us to read
full entries of arbitrary size (without byte granularity). JournalReader
therefore needs to internally buffer entries that don't fit in the read buffer.
Callers should keep calling until 0 and/or an error is returned.
Fixes#172
0 commit comments