Closed ChrisCuts closed 1 year ago
It was introduced in 0.4.4 due to the additional slack in rfc8323common.py maximum_payload_size
Patch for 0.4.4 and 0.4.5
from aiocoap.message import Message
_extract_block = Message._extract_block
Message._extract_block = \
lambda s, n, szs, max_szs: _extract_block(s, n, szs, 1024 * (max_szs // 1024))
Thanks for the report and providing the fix!
Glad to.
Is there a release planned in near future?
Yes, I'd just like to get a few other changes (eg. updating Group OSCORE) in for the release. So far, it doesn't look like I've racked up anything too breaking, so it'll be a minor release.
Release 0.4.7 is out and contains these changes.
We got an exception thrown by the client migrating the server to version 0.4.5:
After some research it figured out, that the payload is not divisible with 1024, what is necessary for BERT messages.![grafik](https://user-images.githubusercontent.com/10007694/220958470-89b03bba-f4c0-4560-a3b5-5e2ca047486a.png)
There seems to be a floor operation problem in the message.py _extract_block method. Please see PR https://github.com/chrysn/aiocoap/pull/299 for more information.