sanic/tests
L. Kärkkäinen 45c22f9af2
Make HTTP connections start in IDLE stage, avoiding delays and error messages (#2268)
* Make all new connections start in IDLE stage, and switch to REQUEST stage only once any bytes are received from client. This makes new connections without any request obey keepalive timeout rather than request timeout like they currently do.

* Revert typo

* Remove request timeout endpoint test which is no longer working (still tested by mocking). Fix mock timeout test setup.

Co-authored-by: L. Karkkainen <tronic@users.noreply.github.com>
2021-11-16 23:09:29 +02:00
..
benchmark Perf improv (#2074) 2021-03-21 09:47:21 +02:00
certs initial commit 2017-03-03 11:44:50 -05:00
fake support app factory patten in CLI (#2157) 2021-06-09 12:05:56 +03:00
performance Fix imports and isort to remove from Makefile deprecated options (#1891) 2020-07-07 16:13:03 +03:00
static Static dir 2075 (#2076) 2021-03-21 15:03:54 +02:00
conftest.py Smarter auto fallback (#2162) 2021-09-29 23:53:49 +03:00
skip_test_custom_protocol.py Streaming Server (#1876) 2021-01-11 00:45:36 +02:00
test_app.py 21.9 release docs (#2218) 2021-09-30 22:36:34 +03:00
test_asgi.py New websockets (#2158) 2021-09-29 13:09:23 +03:00
test_bad_request.py Smarter auto fallback (#2162) 2021-09-29 23:53:49 +03:00
test_base.py Cleanup conftest and fix warning message (#2147) 2021-05-31 22:41:41 +03:00
test_blueprint_copy.py Copy Blueprints Implementation (#2184) 2021-08-10 01:07:04 +03:00
test_blueprint_group.py Smarter auto fallback (#2162) 2021-09-29 23:53:49 +03:00
test_blueprints.py 21.9 release docs (#2218) 2021-09-30 22:36:34 +03:00
test_cli.py Signals Integration (#2160) 2021-08-05 22:55:42 +03:00
test_config.py Add error format commit and merge conflicts 2021-11-16 23:08:55 +02:00
test_constants.py Remove unnecessary import in test_constants.py, which also fixes an error on win (#2180) 2021-07-05 11:51:36 +03:00
test_cookies.py Clean up use cases: 2021-02-03 22:36:44 +02:00
test_create_task.py Signals Integration (#2160) 2021-08-05 22:55:42 +03:00
test_custom_request.py Streaming Server (#1876) 2021-01-11 00:45:36 +02:00
test_dynamic_routes.py Add SanicBase 2021-01-28 09:18:06 +02:00
test_errorpages.py Add error format commit and merge conflicts 2021-11-16 23:08:55 +02:00
test_exceptions_handler.py Allow non-conforming ErrorHandlers (#2259) 2021-10-03 01:02:56 +03:00
test_exceptions.py Allow non-conforming ErrorHandlers (#2259) 2021-10-03 01:02:56 +03:00
test_graceful_shutdown.py Close HTTP loop when connection task cancelled (#2245) 2021-09-27 10:22:30 +03:00
test_handler_annotations.py Add convenience for annotated handlers (#2225) 2021-08-30 20:04:44 +03:00
test_headers.py Smarter auto fallback (#2162) 2021-09-29 23:53:49 +03:00
test_helpers.py Add custom request support to ASGI mode; fix a couple tests 2019-06-24 22:59:23 +03:00
test_http.py HTTP tests (#2194) 2021-07-19 16:52:33 +03:00
test_json_encoding.py JSON encoder change via app (#2055) 2021-03-11 17:09:18 +02:00
test_keep_alive_timeout.py Signals Integration (#2160) 2021-08-05 22:55:42 +03:00
test_logging.py Move server.py into its own module (#2230) 2021-08-31 11:51:32 +03:00
test_logo.py Signals Integration (#2160) 2021-08-05 22:55:42 +03:00
test_middleware.py Add ability to return Falsey but not-None from handlers (#2236) 2021-09-12 07:19:26 +03:00
test_multiprocessing.py Add convenience decorators for new listeners (#2064) 2021-03-16 11:21:05 +02:00
test_named_routes.py v2 AST router (#2133) 2021-06-21 15:10:26 +03:00
test_payload_too_large.py debug and working stage--squash 2021-02-08 12:18:29 +02:00
test_pipelining.py Fix issues with after request handling in HTTP pipelining (#2201) 2021-07-28 11:38:28 +03:00
test_redirect.py deprecate abort (#2077) 2021-04-05 18:01:48 +03:00
test_reloader.py Add reloading on addtional directories (#2167) 2021-06-18 11:39:09 +03:00
test_request_cancel.py Lifespan and code cleanup 2019-06-04 10:58:00 +03:00
test_request_data.py Fix linting issues 2020-09-29 00:40:24 +03:00
test_request_stream.py deprecate abort (#2077) 2021-04-05 18:01:48 +03:00
test_request.py Accept header parsing (#2200) 2021-08-19 21:09:40 +03:00
test_requests.py v2 AST router (#2133) 2021-06-21 15:10:26 +03:00
test_response_timeout.py Disable response timeout on websocket connections (#2081) 2021-03-23 01:20:17 +02:00
test_response.py 21.6 Changelog, release version, and deprecations (#2172) 2021-06-27 22:52:56 +03:00
test_routes.py New websockets (#2158) 2021-09-29 13:09:23 +03:00
test_server_events.py Signals Integration (#2160) 2021-08-05 22:55:42 +03:00
test_signal_handlers.py Close HTTP loop when connection task cancelled (#2245) 2021-09-27 10:22:30 +03:00
test_signals.py Signals Integration (#2160) 2021-08-05 22:55:42 +03:00
test_static.py Static DIR and FILE resource types (#2244) 2021-09-26 01:01:23 +03:00
test_test_client_port.py Remove test client (#2009) 2021-01-28 09:22:22 +02:00
test_timeout_logic.py Make HTTP connections start in IDLE stage, avoiding delays and error messages (#2268) 2021-11-16 23:09:29 +02:00
test_touchup.py Signals Integration (#2160) 2021-08-05 22:55:42 +03:00
test_unix_socket.py GIT-2023: Enable GitHub Actions support (#2050) 2021-04-06 23:32:01 +03:00
test_url_building.py v2 AST router (#2133) 2021-06-21 15:10:26 +03:00
test_url_for_static.py Resolve some more tests 2021-02-07 11:38:37 +02:00
test_url_for.py Signals Integration (#2160) 2021-08-05 22:55:42 +03:00
test_utf8.py Swap out requests-async for httpx (#1728) 2019-12-20 19:23:52 -08:00
test_utils.py 21.3 deprecations (#2007) 2021-01-19 01:36:50 +02:00
test_versioning.py Version prefix (#2137) 2021-05-19 13:32:40 +03:00
test_vhosts.py debug and working stage--squash 2021-02-08 12:18:29 +02:00
test_views.py CBV alternate attach; CompositionView deprecate (#2170) 2021-06-21 14:26:42 +03:00
test_worker.py New websockets (#2158) 2021-09-29 13:09:23 +03:00