On Thu, 9 Feb 2023 at 12:12, Mikko Rapeli <mikko.rap...@linaro.org> wrote: > select() returns with any data, even single character. Fancy readers > will read larger chunks but will read more data than is available and thus > block for ever. Plain read() will read the data which is available from > select() and thus really small amounts like single characters if that's > available over the socket. This is visible in the partial read output of > do_testimage() task output log which becomes quite unreadable without change.
Yes, but this does not explain why single characters happen to begin with - RP offered a hypothesis, but the problem is that data arrives that way, not the tight-loop manner in which we're reading it. Alex
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#176948): https://lists.openembedded.org/g/openembedded-core/message/176948 Mute This Topic: https://lists.openembedded.org/mt/96849157/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-