rx: wake up send after 'twind' has been updated 25/12625/2
authorJeffrey Altman <jaltman@auristor.com>
Sat, 27 May 2017 18:59:04 +0000 (14:59 -0400)
committerBenjamin Kaduk <kaduk@mit.edu>
Tue, 30 May 2017 03:58:28 +0000 (23:58 -0400)
commitaaa47dc1077f0dd5b0040006c831f64cc8a303b5
treedafb2250d9e2ce47b980206016a42cabeb40f4b4
parent63e530e7df0b8013bcc4421b0bba558d4f1d2d57
rx: wake up send after 'twind' has been updated

Beginning in AFS 3.4 and 3.5 the ack trailer includes the size of the
peer's receive window.  This value is used to update the sender's
transmit window (twind).  When the twind is increased the application
thread is signaled to indicate that more packets can be sent.

This change wakes the application thread after twind is updated by
the peer's receive window instead of beforehand.  Failure to do so
can result in 100ms transmit delays when the receive window transitions
from closed to open.

Change-Id: Id129ea93e94612a4b8cce9f8cbddde9c779ff26b
Reviewed-on: https://gerrit.openafs.org/12625
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/rx/rx.c