You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2020/03/03 16:14:08 UTC
[GitHub] [mynewt-mcumgr] ccollins476ad commented on issue #65: fs_mgmt: Fix
file download for Zephyr
ccollins476ad commented on issue #65: fs_mgmt: Fix file download for Zephyr
URL: https://github.com/apache/mynewt-mcumgr/pull/65#issuecomment-594033011
> The calculation happens once per file transfer. I think this is better then calculating the value as preprocessor constant.
But this PR does use a constant (`MCUMGR_BUF_SIZE`). It's just a different constant.
Different connections may have different MTUs (e.g., in Bluetooth). Dynamically calculating the maximum payload size using the connection's MTU would certainly be an improvement, but that is not what this PR does.
The issues I have with this PR are:
1. Creates a divergence in behavior among Zephyr and other OSes.
2. We could achieve nearly the same effect with no code changes; just adjust `FS_MGMT_DL_CHUNK_SIZE`.
I don't think there is much else to say. Others should not wait for my approval before deciding whether to merge.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services