(token: SendToken)
| 214 | // Called when a previously-sent write fails. Restores bytesInFlight without updating |
| 215 | // any BDP estimates. |
| 216 | onError(token: SendToken): void { |
| 217 | this.bytesInFlight -= token.size; |
| 218 | } |
| 219 | |
| 220 | // Called when an ack is received for a previously-sent write. Updates BDP estimates and |
| 221 | // the window. Returns whether a blocked sender should now unblock. |
no outgoing calls