Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/benoitc/gunicorn
/ functions
Functions
5,599 in github.com/benoitc/gunicorn
⨍
Functions
5,599
◇
Types & classes
1,147
↳
Endpoints
142
Method
test_going_away_close
Test going away close (1001).
tests/docker/asgi_compliance/test_websocket_compliance.py:224
Method
test_graceful_goaway_during_wait_keeps_waiting
(self)
tests/test_http2_connection.py:1845
Method
test_graceful_shutdown
Test graceful connection shutdown with GOAWAY.
tests/test_http2_integration.py:399
Method
test_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
Function
test_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
Method
test_graceful_shutdown_drains_connections
Test that graceful shutdown waits for connections to drain.
tests/test_gthread.py:1123
Method
test_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
Method
test_graceful_shutdown_schedules_cancel
Graceful shutdown should schedule task cancellation.
tests/test_asgi_error_handling.py:238
Method
test_graceful_shutdown_sigint
Verify SIGINT causes graceful shutdown.
tests/test_signal_integration.py:172
Method
test_graceful_shutdown_sigterm
Verify SIGTERM causes graceful shutdown.
tests/test_signal_integration.py:146
Method
test_graceful_shutdown_stops_accepting
Test that graceful shutdown stops accepting new connections.
tests/test_gthread.py:1101
Method
test_graceful_timeout_honored
Test that graceful_timeout is honored during shutdown.
tests/test_gthread.py:1311
Method
test_gthread
(self)
tests/test_http2_h2c.py:764
Method
test_gthread_worker_boots_with_control_socket
Verify gthread worker boots without deadlock when control socket is enabled.
tests/test_control_socket_integration.py:190
Method
test_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
Function
test_gunicorn_h1c_rejects_bare_lf
(raw)
tests/test_bare_lf.py:62
Function
test_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
Function
test_gunicorn_h1c_unsupported_coding_class_gets_501_on_wsgi
(monkeypatch)
tests/test_transfer_encoding.py:166
Method
test_h1_maps_to_http11
(self)
tests/test_http2_alpn.py:202
Method
test_h1_only_is_quiet
(self, capsys)
tests/test_http2_config.py:398
Method
test_h1_only_returns_empty
No ALPN needed for HTTP/1.1 only.
tests/test_http2_alpn.py:25
Method
test_h2_enabled_returns_alpn_list
Should return ALPN protocols when h2 is enabled.
tests/test_http2_alpn.py:33
Method
test_h2_maps_to_h2
(self)
tests/test_http2_alpn.py:206
Method
test_h2_only
Should work with h2 only.
tests/test_http2_alpn.py:66
Method
test_h2_over_cleartext_is_quiet
(self, capsys)
tests/test_http2_config.py:387
Method
test_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
Method
test_h2_without_library_returns_empty
Should return empty if h2 library not available.
tests/test_http2_alpn.py:43
Method
test_h2_without_the_package_is_a_config_error
(self)
tests/test_http2_config.py:365
Method
test_h2_without_tls_or_cleartext_warns
(self, capsys)
tests/test_http2_config.py:377
Function
test_h2spec
(worker, h2spec_services)
tests/docker/h2spec/test_h2spec.py:44
Method
test_h3_is_rejected
(self)
tests/test_http2_config.py:356
Method
test_half_close_local_from_half_closed_remote
(self)
tests/test_http2_stream.py:425
Method
test_half_close_local_from_open
(self)
tests/test_http2_stream.py:417
Method
test_half_close_local_invalid_state
(self)
tests/test_http2_stream.py:433
Method
test_half_close_remote_from_half_closed_local
(self)
tests/test_http2_stream.py:449
Method
test_half_close_remote_from_open
(self)
tests/test_http2_stream.py:441
Method
test_half_close_remote_invalid_state
(self)
tests/test_http2_stream.py:457
Method
test_handle_client_connection_close
Test handle_client when connection closes.
tests/test_dirty_arbiter.py:975
Method
test_handle_connection_basic
Test handle_connection reads and responds to messages.
tests/test_dirty_worker.py:690
Method
test_handle_defers_slow_connection
Test that handle() returns _DEFER for connections without data.
tests/test_gthread.py:1895
Method
test_handle_exit_only_once
Test that handle_exit only triggers once when alive.
tests/test_gtornado.py:165
Method
test_handle_exit_sets_alive_false
Test that handle_exit sets alive=False through parent.
tests/test_gtornado.py:155
Method
test_handle_exit_sets_alive_false
Test that exit signal sets alive=False.
tests/test_asgi_worker.py:248
Method
test_handle_exit_sets_alive_false
Test that handle_exit begins graceful shutdown.
tests/test_gthread.py:679
Method
test_handle_exit_sigterm_sets_alive_false
Test that SIGTERM handler sets alive=False for graceful shutdown.
tests/test_gthread.py:1061
Method
test_handle_exit_wakes_up_poller
Test that SIGTERM handler wakes up the poller via method_queue.
tests/test_gthread.py:1073
Method
test_handle_exit_when_already_dead
Test handle_exit when worker is already shutting down.
tests/test_gthread.py:1434
Method
test_handle_priority_updated_existing_stream
Test handling priority update for existing stream.
tests/test_http2_async_connection.py:579
Method
test_handle_priority_updated_existing_stream
Test handling priority update for existing stream.
tests/test_http2_connection.py:586
Method
test_handle_priority_updated_nonexistent_stream
Test that priority update for nonexistent stream is ignored.
tests/test_http2_async_connection.py:628
Method
test_handle_priority_updated_nonexistent_stream
Test that priority update for nonexistent stream is ignored.
tests/test_http2_connection.py:631
Method
test_handle_processes_fast_connection
Test that handle() processes connections with data immediately.
tests/test_gthread.py:1913
Method
test_handle_quit_sets_alive_false
Test that quit signal sets alive=False.
tests/test_asgi_worker.py:258
Method
test_handle_quit_sigquit_immediate_shutdown
Test that SIGQUIT handler triggers immediate shutdown.
tests/test_gthread.py:1090
Method
test_handle_quit_spawns_greenlet
Test that handle_quit spawns a greenlet instead of blocking.
tests/workers/test_ggevent.py:122
Method
test_handle_request_error
Test handling a request that fails.
tests/test_dirty_worker.py:277
Method
test_handle_request_increments_counter
Test that handle_request increments the request counter.
tests/test_gtornado.py:109
Method
test_handle_request_routes_correctly
Test handle_request routes to correct app via protocol.
tests/dirty/test_multi_app_routing.py:499
Method
test_handle_request_success
Test handling a successful request.
tests/test_dirty_worker.py:241
Method
test_handle_request_unknown_app_returns_error
Test that handle_request returns error for unknown app.
tests/dirty/test_multi_app_routing.py:406
Method
test_handle_request_unknown_type
Test handling request with unknown type.
tests/test_dirty_worker.py:313
Method
test_handle_response_error
Test handling error response.
tests/test_dirty_client.py:246
Method
test_handle_response_success
Test handling successful response.
tests/test_dirty_client.py:238
Method
test_handle_response_unknown_type
Test handling unknown response type.
tests/test_dirty_client.py:263
Method
test_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
Method
test_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
Method
test_handle_sigchld_reaps_workers
Test _handle_sigchld calls reap_workers and manage_workers.
tests/test_dirty_arbiter.py:1082
Method
test_handle_skips_wait_for_initialized_connections
Test handle() skips wait_for_data for already initialized (keepalive) connections.
tests/test_gthread.py:1935
Method
test_handle_usr1_spawns_greenlet
Test that handle_usr1 spawns a greenlet instead of blocking.
tests/workers/test_ggevent.py:132
Method
test_handles_attribute_error
Handle old SSL without selected_alpn_protocol.
tests/test_http2_alpn.py:99
Method
test_handles_error_response
Test that error responses still work.
tests/dirty/test_arbiter_streaming.py:310
Method
test_handles_regular_response
Test that regular (non-streaming) responses still work.
tests/dirty/test_arbiter_streaming.py:289
Method
test_handles_ssl_error
Handle SSLError when checking protocol.
tests/test_http2_alpn.py:106
Method
test_handover_takes_the_frames_and_leaves_nothing_behind
(self, parser)
tests/test_http2_h2c.py:868
Method
test_handshake_accept_key_calculation
Test WebSocket accept key is correctly calculated.
tests/test_asgi_protocol_compat.py:781
Method
test_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
Method
test_handshake_missing_key_raises
Test handshake without Sec-WebSocket-Key raises error.
tests/test_asgi_protocol_compat.py:814
Method
test_handshake_with_subprotocol
Test handshake with subprotocol selection.
tests/test_asgi_protocol_compat.py:800
Method
test_has_content_length_bytes
Test detecting Content-Length header (bytes).
tests/test_asgi_streaming.py:268
Method
test_has_content_length_string
Test detecting Content-Length header (string).
tests/test_asgi_streaming.py:281
Method
test_head_drops_the_body
(self)
tests/test_asgi_http2_response.py:86
Method
test_head_method
Test HEAD method returns no body.
tests/docker/asgi_compliance/test_http_compliance.py:92
Method
test_head_omits_body
(self)
tests/test_asgi_streaming.py:358
Method
test_head_request
Test HEAD request (no body in response).
tests/test_http2_integration.py:531
Function
test_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
Method
test_head_request_no_body
HEAD request should have no body.
tests/test_asgi_protocol_http.py:342
Method
test_head_response_keeps_content_length_strips_te
(self)
tests/test_asgi_streaming.py:418
Method
test_header_case_insensitivity
Test HTTP/2 header case handling.
tests/docker/http2/test_http2_docker.py:317
Method
test_header_line
(self)
tests/test_asgi_parser_validation.py:582
Method
test_header_list_size_zero_is_not_advertised
(self)
tests/test_http2_connection.py:2244
Method
test_header_map_drop_silences_underscore
(self, parser_name)
tests/test_header_policy_parity.py:171
Method
test_header_name_with_cr_rejected
Header name containing CR must be rejected.
tests/test_asgi_header_security.py:54
Method
test_header_name_with_lf_rejected
Header name containing LF must be rejected.
tests/test_asgi_header_security.py:66
Method
test_header_name_with_null_rejected
Header name containing null byte must be rejected.
tests/test_asgi_header_security.py:42
Method
test_header_names_are_bytes
Header names in scope must be bytes.
tests/test_asgi_header_security.py:201
Method
test_header_order_preserved
Order of headers should be preserved.
tests/test_asgi_header_security.py:229
Function
test_header_policy_same_as_before
(kind, raw, header_map, peer, read_first)
tests/test_asgi_request_build.py:202
Method
test_header_size
Test header size is 16 bytes.
tests/test_dirty_protocol.py:43
Method
test_header_size_attribute
Test HEADER_SIZE is accessible on class.
tests/test_dirty_protocol.py:522
Method
test_header_value_special_characters_allowed
Header values may contain special printable characters.
tests/test_asgi_header_security.py:124
← previous
next →
3,701–3,800 of 5,599, ranked by callers