a62c84a954
* Socket binding implemented properly for IPv6 and UNIX sockets. - app.run("::1") for IPv6 - app.run("unix:/tmp/server.sock") for UNIX sockets - app.run("localhost") retains old functionality (randomly either IPv4 or IPv6) Do note that IPv6 and UNIX sockets are not fully supported by other Sanic facilities. In particular, request.server_name and request.server_port are currently unreliable. * Fix Windows compatibility by not referring to socket.AF_UNIX unless needed. * Compatibility fix. * Fix test of existing unix socket. * Cleaner unix socket removal. * Remove unix socket on exit also with workers=1. * More pedantic UNIX socket implementation. * Refactor app to take unix= argument instead of unix:-prefixed host. Goin' fast @ unix-socket fixed. * Linter * Proxy properties cleanup. Slight changes of semantics. SERVER_NAME now overrides everything. * Have server fill in connection info instead of request asking the socket. - Would be a good idea to remove request.transport entirely but I didn't dare to touch it yet. * Linter 💣🌟✊💀 * Fix typing issues. request.server_name returns empty string if host header is missing. * Fix tests * Tests were failing, fix connection info. * Linter nazi says you need that empty line. * Rename a to addr, leave client empty for unix sockets. * Add --unix support when sanic is run as module. * Remove remove_route, deprecated in 19.6. * Improved unix socket binding. * More robust creating and unlinking of sockets. Show proper and not temporary name in conn_info. * Add comprehensive tests for unix socket mode. * Hide some imports inside functions to avoid Windows failure. * Mention unix socket mode in deployment docs. * Fix merge commit. * Make test_unix_connection_multiple_workers pickleable for spawn mode multiprocessing. Co-authored-by: L. Kärkkäinen <tronic@users.noreply.github.com> Co-authored-by: Adam Hopkins <admhpkns@gmail.com> |
||
---|---|---|
.. | ||
benchmark | ||
certs | ||
performance | ||
static | ||
conftest.py | ||
test_app.py | ||
test_asgi_client.py | ||
test_asgi.py | ||
test_bad_request.py | ||
test_blueprint_group.py | ||
test_blueprints.py | ||
test_config.py | ||
test_cookies.py | ||
test_create_task.py | ||
test_custom_protocol.py | ||
test_custom_request.py | ||
test_dynamic_routes.py | ||
test_exceptions_handler.py | ||
test_exceptions.py | ||
test_headers.py | ||
test_helpers.py | ||
test_keep_alive_timeout.py | ||
test_logging.py | ||
test_logo.py | ||
test_middleware.py | ||
test_multiprocessing.py | ||
test_named_routes.py | ||
test_payload_too_large.py | ||
test_redirect.py | ||
test_reloader.py | ||
test_request_buffer_queue_size.py | ||
test_request_cancel.py | ||
test_request_data.py | ||
test_request_stream.py | ||
test_request_timeout.py | ||
test_requests.py | ||
test_response_timeout.py | ||
test_response.py | ||
test_routes.py | ||
test_server_events.py | ||
test_signal_handlers.py | ||
test_static.py | ||
test_test_client_port.py | ||
test_unix_socket.py | ||
test_url_building.py | ||
test_url_for_static.py | ||
test_url_for.py | ||
test_utf8.py | ||
test_vhosts.py | ||
test_views.py | ||
test_worker.py |