[S] Change in osmo-remsim[master]: bankd: fix handling of partial writes in worker_send_rspro()
Attention is currently required from: fixeria. Hello Jenkins Builder, I'd like you to reexamine a change. Please visit https://gerrit.osmocom.org/c/osmo-remsim/+/44184?usp=email to look at the new patch set (#2). The following approvals got outdated and were removed: Verified+1 by Jenkins Builder Change subject: bankd: fix handling of partial writes in worker_send_rspro() ...................................................................... bankd: fix handling of partial writes in worker_send_rspro() worker_send_rspro() calls write() once and treats anything other than a complete write as an error. Even on a blocking socket, write() may transfer less than requested, e.g. if it gets interrupted by a signal (such as SIGMAPDEL or SIGMAPADD) after some data has already been sent. Bailing out in this case leaves a truncated IPA message on the wire. Keep calling write() until the whole message has been sent, retrying on EINTR, and only fail on real errors. While at it, make the error message more informative. Change-Id: I2c1675485404ecedb39f9ca25c234623c71cddf5 --- M src/bankd/bankd_main.c 1 file changed, 13 insertions(+), 7 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-remsim refs/changes/84/44184/2 -- To view, visit https://gerrit.osmocom.org/c/osmo-remsim/+/44184?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newpatchset Gerrit-Project: osmo-remsim Gerrit-Branch: master Gerrit-Change-Id: I2c1675485404ecedb39f9ca25c234623c71cddf5 Gerrit-Change-Number: 44184 Gerrit-PatchSet: 2 Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-CC: pespin <pespin@sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy@sysmocom.de>
participants (1)
-
fixeria