Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions yaqd-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
## [Unreleased]

### Fixed
- daemon servers no longer keep all recieved messages in memory
- removed asyncio syntax that was removed in python 3.14
- type hints for IsSensor attributes are appropriate for _n_-dimensional data

Expand Down
5 changes: 5 additions & 0 deletions yaqd-core/yaqd_core/avrorpc/unpacker.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ def feed(self, data: bytes):
# Must support random access, if it does not, must be fed externally (e.g. TCP)
pos = self._file.tell()
self._file.seek(0, 2)
if pos == self._file.tell():
# read reached EOF and we are safe to clear
self._file.seek(0)
self._file.truncate(0)
pos = 0
self._file.write(data)
self._file.seek(pos)
self.new_data.set()
Expand Down