MCPcopy Create free account

hub / github.com/benoitc/gunicorn / functions

Functions5,599 in github.com/benoitc/gunicorn

Methodtest_going_away_close
Test going away close (1001).
tests/docker/asgi_compliance/test_websocket_compliance.py:224
Methodtest_graceful_goaway_during_wait_keeps_waiting
(self)
tests/test_http2_connection.py:1845
Methodtest_graceful_shutdown
Test graceful connection shutdown with GOAWAY.
tests/test_http2_integration.py:399
Methodtest_graceful_shutdown
SIGTERM should cleanly shutdown both arbiters. When the main arbiter receives SIGTERM, it should signal the dirty arbiter and wait fo
tests/docker/dirty_arbiter/test_parent_death.py:423
Functiontest_graceful_shutdown_does_not_wait_out_timeout
The reported symptom: an idle worker must not burn graceful_timeout. Serve a few connections that the server closes first, then shut down. Wi
tests/test_asgi_nr_conns_shutdown.py:159
Methodtest_graceful_shutdown_drains_connections
Test that graceful shutdown waits for connections to drain.
tests/test_gthread.py:1123
Methodtest_graceful_shutdown_ignore_idle_keepalived
Idle keepalived conns are kept for STOP_KEEPALIVE_LINGER on shutdown, not for their keepalive timeout or graceful_timeout.
tests/test_gthread.py:1161
Methodtest_graceful_shutdown_schedules_cancel
Graceful shutdown should schedule task cancellation.
tests/test_asgi_error_handling.py:238
Methodtest_graceful_shutdown_sigint
Verify SIGINT causes graceful shutdown.
tests/test_signal_integration.py:172
Methodtest_graceful_shutdown_sigterm
Verify SIGTERM causes graceful shutdown.
tests/test_signal_integration.py:146
Methodtest_graceful_shutdown_stops_accepting
Test that graceful shutdown stops accepting new connections.
tests/test_gthread.py:1101
Methodtest_graceful_timeout_honored
Test that graceful_timeout is honored during shutdown.
tests/test_gthread.py:1311
Methodtest_gthread
(self)
tests/test_http2_h2c.py:764
Methodtest_gthread_worker_boots_with_control_socket
Verify gthread worker boots without deadlock when control socket is enabled.
tests/test_control_socket_integration.py:190
Methodtest_gunicorn_gevent_worker_patching_works
Integration test verifying gevent patching works with gunicorn. This simulates what happens when: 1. User starts gunicorn with gevent
tests/workers/test_gevent_import_order.py:209
Functiontest_gunicorn_h1c_rejects_bare_lf
(raw)
tests/test_bare_lf.py:62
Functiontest_gunicorn_h1c_unsupported_coding_class_gets_501_on_asgi
Once gunicorn_h1c raises its own UnsupportedTransferCoding, the ASGI worker answers 501 instead of 400.
tests/test_transfer_encoding.py:149
Functiontest_gunicorn_h1c_unsupported_coding_class_gets_501_on_wsgi
(monkeypatch)
tests/test_transfer_encoding.py:166
Methodtest_h1_maps_to_http11
(self)
tests/test_http2_alpn.py:202
Methodtest_h1_only_is_quiet
(self, capsys)
tests/test_http2_config.py:398
Methodtest_h1_only_returns_empty
No ALPN needed for HTTP/1.1 only.
tests/test_http2_alpn.py:25
Methodtest_h2_enabled_returns_alpn_list
Should return ALPN protocols when h2 is enabled.
tests/test_http2_alpn.py:33
Methodtest_h2_maps_to_h2
(self)
tests/test_http2_alpn.py:206
Methodtest_h2_only
Should work with h2 only.
tests/test_http2_alpn.py:66
Methodtest_h2_over_cleartext_is_quiet
(self, capsys)
tests/test_http2_config.py:387
Methodtest_h2_post_body_not_duplicated
Full flow: streaming read must not re-read body from BytesIO. Simulates what the receive() closure in protocol.py does: 1. read_body_
tests/test_http2_connection.py:1136
Methodtest_h2_without_library_returns_empty
Should return empty if h2 library not available.
tests/test_http2_alpn.py:43
Methodtest_h2_without_the_package_is_a_config_error
(self)
tests/test_http2_config.py:365
Methodtest_h2_without_tls_or_cleartext_warns
(self, capsys)
tests/test_http2_config.py:377
Functiontest_h2spec
(worker, h2spec_services)
tests/docker/h2spec/test_h2spec.py:44
Methodtest_h3_is_rejected
(self)
tests/test_http2_config.py:356
Methodtest_half_close_local_from_half_closed_remote
(self)
tests/test_http2_stream.py:425
Methodtest_half_close_local_from_open
(self)
tests/test_http2_stream.py:417
Methodtest_half_close_local_invalid_state
(self)
tests/test_http2_stream.py:433
Methodtest_half_close_remote_from_half_closed_local
(self)
tests/test_http2_stream.py:449
Methodtest_half_close_remote_from_open
(self)
tests/test_http2_stream.py:441
Methodtest_half_close_remote_invalid_state
(self)
tests/test_http2_stream.py:457
Methodtest_handle_client_connection_close
Test handle_client when connection closes.
tests/test_dirty_arbiter.py:975
Methodtest_handle_connection_basic
Test handle_connection reads and responds to messages.
tests/test_dirty_worker.py:690
Methodtest_handle_defers_slow_connection
Test that handle() returns _DEFER for connections without data.
tests/test_gthread.py:1895
Methodtest_handle_exit_only_once
Test that handle_exit only triggers once when alive.
tests/test_gtornado.py:165
Methodtest_handle_exit_sets_alive_false
Test that handle_exit sets alive=False through parent.
tests/test_gtornado.py:155
Methodtest_handle_exit_sets_alive_false
Test that exit signal sets alive=False.
tests/test_asgi_worker.py:248
Methodtest_handle_exit_sets_alive_false
Test that handle_exit begins graceful shutdown.
tests/test_gthread.py:679
Methodtest_handle_exit_sigterm_sets_alive_false
Test that SIGTERM handler sets alive=False for graceful shutdown.
tests/test_gthread.py:1061
Methodtest_handle_exit_wakes_up_poller
Test that SIGTERM handler wakes up the poller via method_queue.
tests/test_gthread.py:1073
Methodtest_handle_exit_when_already_dead
Test handle_exit when worker is already shutting down.
tests/test_gthread.py:1434
Methodtest_handle_priority_updated_existing_stream
Test handling priority update for existing stream.
tests/test_http2_async_connection.py:579
Methodtest_handle_priority_updated_existing_stream
Test handling priority update for existing stream.
tests/test_http2_connection.py:586
Methodtest_handle_priority_updated_nonexistent_stream
Test that priority update for nonexistent stream is ignored.
tests/test_http2_async_connection.py:628
Methodtest_handle_priority_updated_nonexistent_stream
Test that priority update for nonexistent stream is ignored.
tests/test_http2_connection.py:631
Methodtest_handle_processes_fast_connection
Test that handle() processes connections with data immediately.
tests/test_gthread.py:1913
Methodtest_handle_quit_sets_alive_false
Test that quit signal sets alive=False.
tests/test_asgi_worker.py:258
Methodtest_handle_quit_sigquit_immediate_shutdown
Test that SIGQUIT handler triggers immediate shutdown.
tests/test_gthread.py:1090
Methodtest_handle_quit_spawns_greenlet
Test that handle_quit spawns a greenlet instead of blocking.
tests/workers/test_ggevent.py:122
Methodtest_handle_request_error
Test handling a request that fails.
tests/test_dirty_worker.py:277
Methodtest_handle_request_increments_counter
Test that handle_request increments the request counter.
tests/test_gtornado.py:109
Methodtest_handle_request_routes_correctly
Test handle_request routes to correct app via protocol.
tests/dirty/test_multi_app_routing.py:499
Methodtest_handle_request_success
Test handling a successful request.
tests/test_dirty_worker.py:241
Methodtest_handle_request_unknown_app_returns_error
Test that handle_request returns error for unknown app.
tests/dirty/test_multi_app_routing.py:406
Methodtest_handle_request_unknown_type
Test handling request with unknown type.
tests/test_dirty_worker.py:313
Methodtest_handle_response_error
Test handling error response.
tests/test_dirty_client.py:246
Methodtest_handle_response_success
Test handling successful response.
tests/test_dirty_client.py:238
Methodtest_handle_response_unknown_type
Test handling unknown response type.
tests/test_dirty_client.py:263
Methodtest_handle_sets_blocking_before_body_read
Test that socket is blocking before WSGI app reads request body. This is the core fix for issue #3448: Flask's request.get_json() rea
tests/test_gthread.py:1520
Methodtest_handle_sets_blocking_on_keepalive_connection
Test that handle() sets socket to blocking mode on keepalive connections. On keepalive connections, the socket is in non-blocking mode (set b
tests/test_gthread.py:1486
Methodtest_handle_sigchld_reaps_workers
Test _handle_sigchld calls reap_workers and manage_workers.
tests/test_dirty_arbiter.py:1082
Methodtest_handle_skips_wait_for_initialized_connections
Test handle() skips wait_for_data for already initialized (keepalive) connections.
tests/test_gthread.py:1935
Methodtest_handle_usr1_spawns_greenlet
Test that handle_usr1 spawns a greenlet instead of blocking.
tests/workers/test_ggevent.py:132
Methodtest_handles_attribute_error
Handle old SSL without selected_alpn_protocol.
tests/test_http2_alpn.py:99
Methodtest_handles_error_response
Test that error responses still work.
tests/dirty/test_arbiter_streaming.py:310
Methodtest_handles_regular_response
Test that regular (non-streaming) responses still work.
tests/dirty/test_arbiter_streaming.py:289
Methodtest_handles_ssl_error
Handle SSLError when checking protocol.
tests/test_http2_alpn.py:106
Methodtest_handover_takes_the_frames_and_leaves_nothing_behind
(self, parser)
tests/test_http2_h2c.py:868
Methodtest_handshake_accept_key_calculation
Test WebSocket accept key is correctly calculated.
tests/test_asgi_protocol_compat.py:781
Methodtest_handshake_called_when_do_handshake_on_connect_false
Test that do_handshake() is called when do_handshake_on_connect is False.
tests/test_http2_alpn.py:236
Methodtest_handshake_missing_key_raises
Test handshake without Sec-WebSocket-Key raises error.
tests/test_asgi_protocol_compat.py:814
Methodtest_handshake_with_subprotocol
Test handshake with subprotocol selection.
tests/test_asgi_protocol_compat.py:800
Methodtest_has_content_length_bytes
Test detecting Content-Length header (bytes).
tests/test_asgi_streaming.py:268
Methodtest_has_content_length_string
Test detecting Content-Length header (string).
tests/test_asgi_streaming.py:281
Methodtest_head_drops_the_body
(self)
tests/test_asgi_http2_response.py:86
Methodtest_head_method
Test HEAD method returns no body.
tests/docker/asgi_compliance/test_http_compliance.py:92
Methodtest_head_omits_body
(self)
tests/test_asgi_streaming.py:358
Methodtest_head_request
Test HEAD request (no body in response).
tests/test_http2_integration.py:531
Functiontest_head_request_body_is_framed
A HEAD request's Content-Length frames its body like any other request (RFC 9112 section 6.3): the body must not be served as the next request
tests/test_asgi_keepalive_smuggling.py:319
Methodtest_head_request_no_body
HEAD request should have no body.
tests/test_asgi_protocol_http.py:342
Methodtest_head_response_keeps_content_length_strips_te
(self)
tests/test_asgi_streaming.py:418
Methodtest_header_case_insensitivity
Test HTTP/2 header case handling.
tests/docker/http2/test_http2_docker.py:317
Methodtest_header_line
(self)
tests/test_asgi_parser_validation.py:582
Methodtest_header_list_size_zero_is_not_advertised
(self)
tests/test_http2_connection.py:2244
Methodtest_header_map_drop_silences_underscore
(self, parser_name)
tests/test_header_policy_parity.py:171
Methodtest_header_name_with_cr_rejected
Header name containing CR must be rejected.
tests/test_asgi_header_security.py:54
Methodtest_header_name_with_lf_rejected
Header name containing LF must be rejected.
tests/test_asgi_header_security.py:66
Methodtest_header_name_with_null_rejected
Header name containing null byte must be rejected.
tests/test_asgi_header_security.py:42
Methodtest_header_names_are_bytes
Header names in scope must be bytes.
tests/test_asgi_header_security.py:201
Methodtest_header_order_preserved
Order of headers should be preserved.
tests/test_asgi_header_security.py:229
Functiontest_header_policy_same_as_before
(kind, raw, header_map, peer, read_first)
tests/test_asgi_request_build.py:202
Methodtest_header_size
Test header size is 16 bytes.
tests/test_dirty_protocol.py:43
Methodtest_header_size_attribute
Test HEADER_SIZE is accessible on class.
tests/test_dirty_protocol.py:522
Methodtest_header_value_special_characters_allowed
Header values may contain special printable characters.
tests/test_asgi_header_security.py:124
← previousnext →3,701–3,800 of 5,599, ranked by callers