Attention is currently required from: fixeria.

fixeria uploaded patch set #2 to this change.

View Change

The following approvals got outdated and were removed: Verified+1 by Jenkins Builder

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 change 44184. To unsubscribe, or for help writing mail filters, visit settings.

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>