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_flow_control_error
(self)
tests/test_http2_errors.py:47
Function
test_forbidden_ip
Test forbidden IP raises error.
tests/test_asgi_uwsgi.py:449
Method
test_forbidden_ip
Test error when source IP not in allow list.
tests/test_uwsgi.py:258
Method
test_forbidden_trailers_are_dropped
(self)
tests/test_http2_connection.py:2218
Method
test_forbidden_uwsgi_request_str
(self)
tests/test_uwsgi.py:409
Method
test_force_close
(self)
tests/test_http2_request.py:404
Method
test_force_close
Test force_close method.
tests/test_uwsgi.py:331
Method
test_forwarded_header_in_scope
Forwarded header should be passed through.
tests/test_asgi_forwarded_headers.py:275
Method
test_forwarded_header_multiple_proxies
Forwarded header with multiple proxies.
tests/test_asgi_forwarded_headers.py:290
Method
test_forwarded_headers
Test that proxy adds forwarded headers.
tests/docker/http2/test_http2_docker.py:185
Function
test_forwarded_trust_holds_for_every_request
Decided once per connection, applied to each of its requests.
tests/test_asgi_config_cache.py:101
Method
test_forwards_chunk_messages
Test that arbiter forwards chunk messages to client.
tests/dirty/test_arbiter_streaming.py:112
Method
test_forwards_error_mid_stream
Test that arbiter forwards error during streaming.
tests/dirty/test_arbiter_streaming.py:162
Method
test_forwards_many_chunks
Test that arbiter forwards many chunks correctly.
tests/dirty/test_arbiter_streaming.py:258
Method
test_forwards_regular_response
Test that arbiter forwards regular response to client.
tests/dirty/test_arbiter_streaming.py:141
Method
test_four_dirty_workers_running
Should have 4 dirty workers as configured.
tests/docker/per_app_allocation/test_per_app_e2e.py:297
Method
test_fragment_state_initial
Test initial fragment reassembly state.
tests/test_asgi_websocket_protocol.py:315
Method
test_fragmented_endpoint
Test fragmented message info endpoint.
tests/docker/asgi_compliance/test_websocket_compliance.py:484
Function
test_fragmented_message_over_limit_closes_1009
()
tests/test_asgi_websocket_enhanced.py:622
Method
test_fragmented_message_reassembly
Test reassembly of fragmented text message with multiple continuation frames.
tests/test_asgi_websocket_protocol.py:970
Function
test_fragmented_text_with_control_frame_between_is_delivered
A ping between fragments is allowed (5.4); the message arrives whole.
tests/test_asgi_websocket_enhanced.py:730
Method
test_frame_header_fin_bit
FIN bit should be set for complete messages.
tests/test_asgi_websocket_enhanced.py:366
Method
test_frame_header_mask_bit
Server frames should NOT have MASK bit set.
tests/test_asgi_websocket_enhanced.py:373
Method
test_frame_header_structure
Test understanding of WebSocket frame header structure.
tests/test_asgi_websocket_protocol.py:239
Function
test_frame_larger_than_read_buffer_is_read
Pausing the socket must not stop a frame bigger than the pause threshold from being read.
tests/test_asgi_websocket_enhanced.py:649
Method
test_frame_length_encoding_large
Large payloads (> 65535) use 64-bit length.
tests/test_asgi_websocket_enhanced.py:398
Method
test_frame_length_encoding_medium
Medium payloads (126-65535) use 16-bit length.
tests/test_asgi_websocket_enhanced.py:387
Method
test_frame_length_encoding_small
Small payloads (< 126) use 7-bit length.
tests/test_asgi_websocket_enhanced.py:381
Function
test_frame_over_limit_closes_1009_before_reading
A frame declaring 1 TiB is refused from its header alone.
tests/test_asgi_websocket_enhanced.py:612
Method
test_frame_size_error
(self)
tests/test_http2_errors.py:59
Method
test_frames_for_a_stream_we_dropped_are_ignored
(self)
tests/test_http2_async_connection.py:1263
Method
test_frames_for_a_stream_we_dropped_are_ignored
h2 still tracks the stream; gunicorn no longer does.
tests/test_http2_connection.py:1751
Method
test_framework_health
Test framework health endpoint.
tests/docker/asgi_compliance/test_framework_integration.py:39
Method
test_framework_independence
Test frameworks work independently.
tests/docker/asgi_compliance/test_framework_integration.py:351
Method
test_framework_root_endpoint
Test framework root returns available frameworks.
tests/docker/asgi_compliance/test_framework_integration.py:30
Method
test_from_parser_body_info
Test body info extraction.
tests/test_python_protocol.py:407
Method
test_from_parser_chunked
Test chunked transfer detection.
tests/test_python_protocol.py:422
Method
test_from_parser_headers
Test header conversion.
tests/test_python_protocol.py:387
Method
test_from_parser_simple
Test creating request from parser state.
tests/test_python_protocol.py:364
Method
test_from_parser_ssl
Test SSL scheme detection.
tests/test_python_protocol.py:378
Method
test_full_preface_commits_to_http2
(self)
tests/test_http2_h2c.py:561
Method
test_full_request_response_flow
Test full request-response flow between arbiter and worker.
tests/test_dirty_integration.py:285
Method
test_full_response
(self)
tests/test_http2_async_connection.py:1393
Method
test_generate_daily_report
Test daily report generation.
examples/celery_alternative/tests/test_tasks.py:279
Method
test_generate_thumbnail
Test thumbnail generation via API.
examples/celery_alternative/tests/test_integration.py:167
Method
test_generate_thumbnail
Test thumbnail generation.
examples/celery_alternative/tests/test_tasks.py:115
Method
test_get_200_has_body
(self)
tests/test_asgi_streaming.py:374
Method
test_get_apps_for_new_worker_all_standard
All apps returned when all have workers=None.
tests/test_dirty_arbiter.py:1309
Method
test_get_apps_for_new_worker_respects_limit
App with workers=2 stops assigning after 2 workers.
tests/test_dirty_arbiter.py:1327
Method
test_get_available_worker_app_no_workers_returns_none
Returns None if no workers have the app.
tests/test_dirty_arbiter.py:1498
Method
test_get_available_worker_no_filter
Without app_path, returns any worker round-robin.
tests/test_dirty_arbiter.py:1455
Method
test_get_available_worker_returns_first
Test _get_available_worker returns first worker.
tests/test_dirty_arbiter.py:622
Method
test_get_available_worker_with_app_filter
With app_path, returns only workers that have it.
tests/test_dirty_arbiter.py:1477
Method
test_get_body_after_data
(self)
tests/test_http2_stream.py:474
Method
test_get_dirty_client_different_threads
Test that different threads get different clients.
tests/test_dirty_client.py:183
Method
test_get_dirty_client_thread_local
Test that get_dirty_client returns thread-local client.
tests/test_dirty_client.py:161
Method
test_get_dirty_pidfile_path
Verify pidfile path is generated correctly.
tests/test_arbiter.py:841
Method
test_get_dirty_pidfile_path_sanitizes_name
Verify special characters in proc_name are sanitized.
tests/test_arbiter.py:852
Method
test_get_dirty_pidfile_path_uses_proc_name_not_cfg
Verify pidfile path uses self.proc_name for USR2 compatibility. During USR2, self.proc_name becomes 'myapp.2' while self.cfg.proc_name
tests/test_arbiter.py:863
Method
test_get_empty_body
(self)
tests/test_http2_stream.py:469
Method
test_get_header
Test get_header method.
tests/test_python_protocol.py:456
Method
test_get_header_case_insensitive
(self)
tests/test_http2_request.py:291
Method
test_get_header_not_found
(self)
tests/test_http2_request.py:306
Function
test_get_is_served
(server)
tests/test_asgi_uwsgi_protocol.py:112
Method
test_get_method
GET method should be parsed.
tests/test_asgi_protocol_http.py:362
Method
test_get_method
Test GET method.
tests/docker/asgi_compliance/test_http_compliance.py:57
Method
test_get_request_text_response
Test a complete GET request with text response.
tests/test_http2_integration.py:87
Method
test_get_root
Test basic GET request to root endpoint.
tests/docker/uwsgi/test_uwsgi_integration.py:25
Method
test_get_socket_path_from_env
Test getting socket path from environment.
tests/test_dirty_client.py:131
Method
test_get_socket_path_not_configured
Test error when socket path not configured.
tests/test_dirty_client.py:146
Function
test_get_username_from_basic_auth_header
(auth)
tests/test_logger.py:64
Function
test_get_username_handles_malformed_basic_auth_header
Should catch a malformed auth header
tests/test_logger.py:81
Method
test_get_with_query_string
Test parsing GET with query string.
tests/test_python_protocol.py:38
Method
test_get_with_query_string
Test GET request with query string parameters.
tests/docker/uwsgi/test_uwsgi_integration.py:31
Method
test_get_worker_connection_cached
Test that _get_worker_connection returns cached connection.
tests/test_dirty_arbiter.py:647
Method
test_get_worker_connection_no_socket
Test _get_worker_connection fails when no socket path.
tests/test_dirty_arbiter.py:668
Method
test_get_worker_connection_socket_not_ready
Test _get_worker_connection when socket file doesn't exist.
tests/test_dirty_arbiter.py:685
Method
test_get_workers_from_class_attribute
App with workers=2 class attribute returns 2.
tests/test_dirty_app.py:310
Method
test_get_workers_invalid_format
Invalid format raises DirtyAppError.
tests/test_dirty_app.py:340
Method
test_get_workers_none_for_base_class
Base DirtyApp returns workers=None.
tests/test_dirty_app.py:303
Method
test_get_workers_none_for_inherited
App without explicit workers attribute returns None.
tests/test_dirty_app.py:317
Method
test_get_workers_not_found_class
Non-existent class raises DirtyAppNotFoundError.
tests/test_dirty_app.py:332
Method
test_get_workers_not_found_module
Non-existent module raises DirtyAppNotFoundError.
tests/test_dirty_app.py:324
Method
test_getsourcelines_indexing
Verify that Spew correctly indexes inspect.getsourcelines() result. Regression test for https://github.com/benoitc/gunicorn/issues/3344
tests/test_debug.py:18
Method
test_gevent
(self)
tests/test_http2_h2c.py:796
Method
test_gevent_config_file_patching_scenario
Test the exact scenario from the bug report gist. This reproduces the test case from: https://gist.github.com/markjm/9f724364619c5198
tests/workers/test_gevent_import_order.py:274
Method
test_gevent_handle_calls_super
Test that GeventWorker.handle() calls super().handle().
tests/test_http2_alpn.py:345
Method
test_gevent_ignores_a_plain_request
(self)
tests/test_http2_h2c.py:788
Method
test_gevent_inherits_async_worker
Test that GeventWorker inherits from AsyncWorker.
tests/test_http2_alpn.py:333
Method
test_gevent_patch_after_concurrent_futures_import_leaves_unpatched_lock
Test that patching after concurrent.futures import leaves locks unpatched. This reproduces the issue from the gist where the _global_shutdown
tests/workers/test_gevent_import_order.py:86
Method
test_gevent_patch_before_concurrent_futures_import_patches_lock
Test that patching BEFORE concurrent.futures import works correctly. This shows the correct behavior: when monkey.patch_all() is called
tests/workers/test_gevent_import_order.py:151
Method
test_gevent_worker_boots_with_control_socket
Verify gevent worker boots without deadlock when control socket is enabled. This test is critical for issue #3509 - the gevent worker uses mo
tests/test_control_socket_integration.py:235
Method
test_gevent_worker_handles_multiple_requests
Verify gevent worker handles multiple requests with control socket enabled.
tests/test_control_socket_integration.py:271
Method
test_gevent_worker_header
Test that gevent worker header is present.
examples/http2_gevent/test_http2_gevent.py:148
Method
test_goaway_followed_by_data_in_one_read
(self)
tests/test_http2_async_connection.py:1411
Method
test_goaway_followed_by_data_in_one_read
The rest of the client's write lands after its GOAWAY.
tests/test_http2_connection.py:1612
Function
test_goaway_followed_by_data_in_one_write
(server, client)
tests/test_http2_live.py:227
Method
test_goaway_with_error_closes_at_once
(self)
tests/test_http2_connection.py:1663
Method
test_goaway_with_error_during_wait_returns_minus_one
(self)
tests/test_http2_connection.py:1856
Method
test_goaway_with_nothing_in_flight_closes
(self)
tests/test_http2_connection.py:1671
← previous
next →
3,601–3,700 of 5,599, ranked by callers