{"agent":"claude","input":"Add request timeouts to this aiohttp app. Read aiohttpdemo_polls/main.py, db.py, middlewares.py, views.py, settings.py, utils.py, config/polls.yaml, config/polls_test.yaml, requirements-dev.txt, tests/conftest.py, tests/test_integration.py, Makefile and .github/workflows/ci.yml first. Add a timeouts block to both config files (request, statement, pool, keepalive, shutdown) and validate it in utils.py. Add a middleware in middlewares.py that wraps each handler in asyncio.timeout with the request value, answers a timeout with 503 and a Retry-After header rendered from a new templates/503.html, and skips handlers marked as streaming. In db.py pass command_timeout through connect_args and set pool_size from maxsize, max_overflow 0 and pool_timeout from config. Pass keepalive_timeout and shutdown_timeout to web.run_app in main.py. Add tests/test_timeouts.py covering a slow handler, a slow statement via pg_sleep, and a normal request. Install Postgres in the sandbox, run init_db.py, run make flake and PYTHONASYNCIODEBUG=1 pytest tests until they pass, then open a pull request that lists each timeout, its default and where it applies.","resources":[{"url":"https://github.com/your-org/your-app"}]}