]> git.evergreen-ils.org Git - OpenSRF.git/commit
LP1874510 libopensrf recv timeout cal repair
authorBill Erickson <berickxx@gmail.com>
Thu, 23 Apr 2020 19:32:50 +0000 (15:32 -0400)
committerBill Erickson <berickxx@gmail.com>
Mon, 11 May 2020 19:49:49 +0000 (15:49 -0400)
commitcbf837440c96b4f767aaaed033478aa8c1aaab03
treee04a028aed3c0dfb1d60cc99f17857c7da0a2c48
parent747a59e1c6e8e75d4cae579459b76ee792602a2e
LP1874510 libopensrf recv timeout cal repair

Fixes the message receive timeout calculation logic in OpenSRF C client
code.  The calculation is performed when multiple calls to receive are
needed to piece together a response message.

The logic previously calculated the time remaining as the time remaining
minus the total time taken for all iterations with each loop iteration,
leading to exhausting the timeout too quickly.  Now it calculates the
value as time remaining minus the time taken for the only most recent
loop iteration.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jason Stephenson <jason@sigio.com>
src/libopensrf/osrf_app_session.c