Spelling fixes in comments (#508)

This commit is contained in:
Josh Soref
2021-02-25 11:59:18 -05:00
committed by GitHub
parent c1b411fc14
commit bcaaaf6dd9
9 changed files with 12 additions and 12 deletions

View File

@@ -708,7 +708,7 @@ async fn recv_too_big_headers() {
.await;
srv.send_frame(frames::headers(1).response(200).eos()).await;
srv.send_frame(frames::headers(3).response(200)).await;
// no reset for 1, since it's closed anyways
// no reset for 1, since it's closed anyway
// but reset for 3, since server hasn't closed stream
srv.recv_frame(frames::reset(3).refused()).await;
idle_ms(10).await;

View File

@@ -460,7 +460,7 @@ async fn send_rst_stream_allows_recv_data() {
srv.send_frame(frames::headers(1).response(200)).await;
srv.recv_frame(frames::reset(1).cancel()).await;
// sending frames after canceled!
// note: sending 2 to cosume 50% of connection window
// note: sending 2 to consume 50% of connection window
srv.send_frame(frames::data(1, vec![0; 16_384])).await;
srv.send_frame(frames::data(1, vec![0; 16_384]).eos()).await;
// make sure we automatically free the connection window
@@ -736,7 +736,7 @@ async fn rst_while_closing() {
h2_support::trace_init!();
let (io, mut srv) = mock::new();
// Rendevous when we've queued a trailers frame
// Rendezvous when we've queued a trailers frame
let (tx, rx) = oneshot::channel();
let srv = async move {