commit | e6209d9e14a419db0b9377cb807a69915070fef6 | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Fri Oct 01 08:24:33 2021 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sat Oct 02 01:05:06 2021 +0000 |
tree | be6c9218b7445cc25d5e3d6ef5f8ff36c8cc410e | |
parent | 19a6cdcd9c09faea0ba1d0092c8d1c101107edbb [diff] |
pw_transfer: Reorganize code; ignore bad chunks after drops - On writes, only send a transfer parameters update after the first chunk with an incorrect offset. This prevents storms of transfer parameters updates when early packets in the window are dropped. If that update is dropped, the client time out and resend its last chunk. - Move transfer logic to the ServerContext class. - Introduce the ClientConnection class, which represents a connection to a particular pw_transfer client. It bundles the server writers with the transfer parameters for those streams. Change-Id: If68943610252c63c3044956f335a641523a8a917 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/63284 Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com> Reviewed-by: Keir Mierle <keir@google.com> Commit-Queue: Wyatt Hepler <hepler@google.com>
See our website: http://pigweed.dev