Skip to content

Cookbook: long requests, of the user agent and of the infrastructure in front of the application - #615

Merged
dex4er merged 1 commit into
stream-keepalivefrom
timeouts-docs
Nov 12, 2026
Merged

dex4er merged 1 commit into
stream-keepalivefrom
timeouts-docs

Conversation

@dex4er

@dex4er dex4er commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

The last step of #266, stacked on #614: the documentation of long requests.

Changes

Validation

  • t/docs/guides_cookbook.py: the snippet of the user agent against the mock of the services, with a service that does not answer, whose request the time passes first, and whose connection closes
  • Sphinx with -W, trunk check
  • The suite on asyncio and on Pyjo.Reactor.Poll with PYTHONDEVMODE=1

Closes #266

🤖 Generated with Claude Code

…in front of the application

A user agent of its own for a slow service, as the API of a model of
language, and a request with a time of its own, which races with a timeout
and is cancelled when the time passes first. The section of the deployment
names the timeouts of nginx, Caddy, the load balancers of AWS and Google
Cloud, Cloud Run, Kubernetes, API Gateway and AWS Lambda, which the
timeouts and the heartbeat of a route fit in, and the FAQ of the inactivity
timeout links it.

Closes #266

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dex4er dex4er added this to the 0.4.0 milestone Nov 12, 2026
@dex4er
dex4er added this pull request to stack #613 November 12, 2026 16:25
@read-the-docs-community

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

Tests

Job Tests Passed ✅ Skipped ⚠️ Failed ❌ Log
prove (python 3.12, Asyncio) 7466 7437 29 0 ✅ 131323449490
prove (python 3.12, Poll) 7438 7407 31 0 ✅ 131323449514
prove (python 3.13, Asyncio) 7466 7437 29 0 ✅ 131323449473
prove (python 3.13, Poll) 7438 7407 31 0 ✅ 131323449712
prove (python 3.14, Asyncio) 7497 7473 24 0 ✅ 131323449696
prove (python 3.14, Poll) 7469 7443 26 0 ✅ 131323450489
prove (python 3.15, Asyncio) 7497 7473 24 0 ✅ 131323449763
prove (python 3.15, Poll) 7469 7443 26 0 ✅ 131323449637
prove (python 3.15t, Asyncio) 7497 7473 24 0 ✅ 131323449815
prove (python 3.15t, Poll) 7469 7443 26 0 ✅ 131323449715
prove (python mise, Asyncio) 7576 7541 35 0 ✅ 131323449534
prove (python mise, Asyncio, Windows) 7297 7231 66 0 ✅ 131323449530
prove (python mise, Poll) 7548 7511 37 0 ✅ 131323448835
prove (python mise, Poll, Windows) 7269 7201 68 0 ✅ 131323449708
prove (python pypy3.12, Asyncio) 7466 7437 29 0 ✅ 131323449757
prove (python pypy3.12, Poll) 7438 7407 31 0 ✅ 131323450125
pytest (python 3.12, ubuntu-26.04-arm) 442 416 26 0 ✅ 131323449812
pytest (python 3.15, ubuntu-26.04-arm) 442 421 21 0 ✅ 131323449961
pytest (python 3.15, windows-2025) 442 393 49 0 ✅ 131323449526
servers (python 3.12) 54 54 0 0 ✅ 131323449653
servers (python 3.15) 53 53 0 0 ✅ 131323449452
All 120733 120101 632 0 ✅

The run of the workflow

@dex4er
dex4er merged commit e1842db into main Nov 12, 2026
26 checks passed
@dex4er
dex4er deleted the timeouts-docs branch November 12, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Timeouts for long requests: routes, deadlines, cancellation and keepalive of streams

1 participant