Attention is currently required from: fixeria, pespin. osmith has posted comments on this change by fixeria. ( https://gerrit.osmocom.org/c/osmo-remsim/+/44182?usp=email ) Change subject: bankd: fix handling of short reads in blocking_ipa_read() ...................................................................... Patch Set 1: Code-Review+1 (2 comments) File src/bankd/bankd_main.c: https://gerrit.osmocom.org/c/osmo-remsim/+/44182/comment/354c20c6_01d0ac21?u... : PS1, Line 659: } else if (rc < 0)
Nitpicking again. This `else` was in the original code (see left side of the diff). […] It is not obvious to me that this `else` would be unnecessary. `recv` could return `-1` and set a different `errno` than `EINTR`, in which case we should abort here and not add rc (`-1`) to `received` and try to receive more data.
https://gerrit.osmocom.org/c/osmo-remsim/+/44182/comment/c165d050_c67b8b53?u... : PS1, Line 661: else if (rc == 0)
This `else` was in the original code (see left side of the diff). […] Looks to me like we need this `else` to handle clients potentially sending malformed data, either with header or payload being too short. Otherwise we don't exit this loop?
-- To view, visit https://gerrit.osmocom.org/c/osmo-remsim/+/44182?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-remsim Gerrit-Branch: master Gerrit-Change-Id: Ibba2002a1cb9b3d84d294151de13056c5d1cd136 Gerrit-Change-Number: 44182 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge@osmocom.org> Gerrit-Reviewer: osmith <osmith@sysmocom.de> Gerrit-CC: pespin <pespin@sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy@sysmocom.de> Gerrit-Attention: pespin <pespin@sysmocom.de> Gerrit-Comment-Date: Wed, 02 Dec 2026 09:33:54 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Comment-In-Reply-To: fixeria <vyanitskiy@sysmocom.de> Comment-In-Reply-To: pespin <pespin@sysmocom.de>