(chunkSize: number)
| 56 | // Fill the window by sending chunks of the given size. Returns the number of chunks sent |
| 57 | // (the last one caused blocking). |
| 58 | fillWindow(chunkSize: number): number { |
| 59 | let count = 0; |
| 60 | while (!this.blocked) { |
| 61 | count++; |
| 62 | this.send(chunkSize); |
| 63 | } |
| 64 | return count; |
| 65 | } |
| 66 | |
| 67 | // Advance to the next message's ack time, and deliver the ack to the flow controller. |
| 68 | waitForNextAck() { |
no test coverage detected