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
22 changes: 22 additions & 0 deletions .github/workflows/label-remove.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Clear needs-info/pr-unfinished on activity
on:
pull_request:
types: [synchronize, review_requested]
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]

jobs:
clear-pr-unfinished:
runs-on: ubuntu-latest
permissions:
pull-requests: write

steps:
- name: Remove label
uses: actions-ecosystem/action-remove-labels@v1
with:
labels: |
needs-info
pr-unfinished
1 change: 0 additions & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ jobs:
with:
days-before-stale: 30
any-of-labels: needs-info
labels-to-remove-when-unstale: needs-info
2 changes: 2 additions & 0 deletions CHANGES/12042.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Documented :exc:`asyncio.TimeoutError` for ``WebSocketResponse.receive()``
and related methods -- by :user:`veeceey`.
7 changes: 7 additions & 0 deletions docs/web_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1275,6 +1275,8 @@ and :ref:`aiohttp-web-signals` handlers::

:raise RuntimeError: if connection is not started

:raise asyncio.TimeoutError: if timeout expires before receiving a message

.. method:: receive_str(*, timeout=None)
:async:

Expand All @@ -1293,6 +1295,8 @@ and :ref:`aiohttp-web-signals` handlers::

:raise aiohttp.WSMessageTypeError: if message is not :const:`~aiohttp.WSMsgType.TEXT`.

:raise asyncio.TimeoutError: if timeout expires before receiving a message

.. method:: receive_bytes(*, timeout=None)
:async:

Expand All @@ -1312,6 +1316,8 @@ and :ref:`aiohttp-web-signals` handlers::

:raise aiohttp.WSMessageTypeError: if message is not :const:`~aiohttp.WSMsgType.BINARY`.

:raise asyncio.TimeoutError: if timeout expires before receiving a message

.. method:: receive_json(*, loads=json.loads, timeout=None)
:async:

Expand All @@ -1335,6 +1341,7 @@ and :ref:`aiohttp-web-signals` handlers::

:raise TypeError: if message is :const:`~aiohttp.WSMsgType.BINARY`.
:raise ValueError: if message is not valid JSON.
:raise asyncio.TimeoutError: if timeout expires before receiving a message


.. seealso:: :ref:`WebSockets handling<aiohttp-web-websockets>`
Expand Down
Loading