Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/h2/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ def send_headers(self,
on the stream given in ``priority_depends_on`` for priority
purposes. See :meth:`prioritize
<h2.connection.H2Connection.prioritize>` for more about how this
field workds. Defaults to ``None``, which means that no priority
field works. Defaults to ``None``, which means that no priority
information will be sent.
:type priority_depends_on: ``bool`` or ``None``

Expand Down
2 changes: 1 addition & 1 deletion src/h2/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ class SettingsAcknowledged(Event):
"""
The SettingsAcknowledged event is fired whenever a settings ACK is received
from the remote peer. The event carries on it the settings that were
acknowedged, in the same format as
acknowledged, in the same format as
:class:`h2.events.RemoteSettingsChanged`.
"""

Expand Down
6 changes: 3 additions & 3 deletions src/h2/frame_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from .exceptions import FrameDataMissingError, FrameTooLargeError, ProtocolError

# To avoid a DOS attack based on sending loads of continuation frames, we limit
# the maximum number we're perpared to receive. In this case, we'll set the
# the maximum number we're prepared to receive. In this case, we'll set the
# limit to 64, which means the largest encoded header block we can receive by
# default is 262144 bytes long, and the largest possible *at all* is 1073741760
# bytes long.
Expand All @@ -25,7 +25,7 @@

class FrameBuffer:
"""
A buffer data structure for HTTP/2 data that allows iteraton in terms of
A buffer data structure for HTTP/2 data that allows iteration in terms of
H2 frames.
"""

Expand Down Expand Up @@ -94,7 +94,7 @@ def _update_header_buffer(self, f: Frame | None) -> Frame | None:

# If this is the end of the header block, then we want to build a
# mutant HEADERS frame that's massive. Use the original one we got,
# then set END_HEADERS and set its data appopriately. If it's not
# then set END_HEADERS and set its data appropriately. If it's not
# the end of the block, lose the current frame: we can't yield it.
if "END_HEADERS" in f.flags:
f = self._headers_buffer[0]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_flow_control_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ def test_must_acknowledge_for_stream(self, frame_factory, stream_id) -> None:
frame_factory.refresh_encoder()

# Create a connection in a state that might actually accept
# data acknolwedgement.
# data acknowledgement.
c = self._setup_connection_and_send_headers(frame_factory)
data_frame = frame_factory.build_data_frame(
b"some data", flags=["END_STREAM"],
Expand All @@ -755,7 +755,7 @@ def test_cannot_acknowledge_less_than_zero(self, frame_factory, size) -> None:
frame_factory.refresh_encoder()

# Create a connection in a state that might actually accept
# data acknolwedgement.
# data acknowledgement.
c = self._setup_connection_and_send_headers(frame_factory)
data_frame = frame_factory.build_data_frame(
b"some data", flags=["END_STREAM"],
Expand Down