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_cancel
(self)
tests/test_http2_errors.py:67
Method
test_cancel_keepalive_timer_handles_none
Cancelling non-existent timer should be safe.
tests/test_asgi_error_handling.py:307
Method
test_cancel_task_if_pending_cancels_running_task
Test that _cancel_task_if_pending cancels a running task.
tests/test_asgi_disconnect.py:169
Method
test_cancel_task_if_pending_skips_completed_task
Test that _cancel_task_if_pending doesn't cancel completed tasks.
tests/test_asgi_disconnect.py:182
Method
test_cannot_receive_in_closed
(self)
tests/test_http2_stream.py:123
Method
test_cannot_receive_in_half_closed_remote
(self)
tests/test_http2_stream.py:117
Method
test_cannot_receive_in_idle
(self)
tests/test_http2_stream.py:111
Method
test_cannot_send_in_closed
(self)
tests/test_http2_stream.py:157
Method
test_cannot_send_in_half_closed_local
(self)
tests/test_http2_stream.py:151
Method
test_cannot_send_in_idle
(self)
tests/test_http2_stream.py:145
Method
test_case_insensitive
(self)
tests/test_http2_h2c.py:686
Method
test_case_insensitive
(self)
tests/test_http2_config.py:46
Function
test_certfile
()
tests/test_ssl.py:25
Method
test_check_trusted_proxy_function_exists
_check_trusted_proxy function should exist.
tests/test_asgi_forwarded_headers.py:313
Method
test_chunk_and_end_roundtrip
Test that chunk and end messages can be encoded/decoded.
tests/test_dirty_protocol.py:449
Method
test_chunk_extension_accepted
Chunk extensions after semicolon should be accepted.
tests/test_asgi_parser_validation.py:392
Method
test_chunk_extension_bare_cr_rejected
Chunk extensions with bare CR should be rejected per RFC 9112.
tests/test_asgi_callback_parser.py:568
Method
test_chunk_extension_with_quoted_string
Chunk extensions with quoted values should be accepted.
tests/test_asgi_callback_parser.py:546
Method
test_chunk_size_encoding
Test chunk size encoding for various sizes.
tests/test_asgi_streaming.py:514
Method
test_chunk_size_line
(self)
tests/test_asgi_parser_validation.py:587
Function
test_chunk_size_line_is_bounded
An endless chunk-size line is refused instead of read for ever.
tests/test_http.py:586
Method
test_chunk_size_with_leading_space_rejected
Leading space in chunk size must be rejected.
tests/test_asgi_parser_validation.py:299
Method
test_chunk_size_with_tab_rejected
Tab in chunk size must be rejected.
tests/test_asgi_parser_validation.py:327
Method
test_chunk_size_with_trailing_space_rejected
Trailing space in chunk size must be rejected.
tests/test_asgi_parser_validation.py:313
Method
test_chunk_size_with_underscore_rejected
Underscore in chunk size must be rejected.
tests/test_asgi_parser_validation.py:341
Method
test_chunked_body
Test chunked transfer encoding.
tests/test_python_protocol.py:116
Function
test_chunked_body_content_and_pipelined_request
(chunks)
tests/test_http.py:829
Method
test_chunked_body_encoding_with_framework_te
Body chunks should still be properly encoded when framework sets TE.
tests/test_asgi_protocol_compat.py:1079
Function
test_chunked_body_reads_follow_chunk_size
Chunk data is read in steps as large as the chunk (#2596), never past the end of the chunk.
tests/test_http.py:808
Method
test_chunked_encoding
Parse chunked transfer-encoded body.
tests/test_asgi_callback_parser.py:224
Method
test_chunked_encoding_empty_body
Empty chunked body (just terminator) should work.
tests/test_asgi_protocol_http.py:249
Method
test_chunked_encoding_empty_chunk
Test encoding empty body chunk.
tests/test_asgi_streaming.py:49
Method
test_chunked_encoding_format
Test chunked encoding format: size in hex + CRLF + data + CRLF.
tests/test_asgi_streaming.py:26
Method
test_chunked_encoding_header
Test response uses chunked transfer encoding.
tests/docker/asgi_compliance/test_streaming_compliance.py:292
Method
test_chunked_encoding_large_chunk
Test chunked encoding with larger data.
tests/test_asgi_streaming.py:33
Method
test_chunked_encoding_multiple_chunks
Multiple chunks should be concatenated.
tests/test_asgi_protocol_http.py:226
Method
test_chunked_encoding_multiple_chunks
Test multiple chunks in sequence.
tests/test_asgi_streaming.py:56
Method
test_chunked_encoding_single_chunk
Single chunk with terminator should work.
tests/test_asgi_protocol_http.py:204
Method
test_chunked_encoding_terminal_chunk
Test terminal chunk (zero-length).
tests/test_asgi_streaming.py:42
Method
test_chunked_encoding_with_trailer
Chunked encoding with trailer headers.
tests/test_asgi_protocol_http.py:269
Method
test_chunked_hex_sizes
Chunk sizes should be parsed as hex.
tests/test_asgi_protocol_http.py:292
Method
test_chunked_http10_rejected
Chunked Transfer-Encoding in HTTP/1.0 must be rejected.
tests/test_asgi_parser_validation.py:153
Function
test_chunked_message_split_across_reads
Terminators straddling two reads are found, and long lines still parse. Delivered a byte at a time, so every chunk-size line, chunk terminator
tests/test_http.py:604
Method
test_chunked_payload_is_decoded
(self, parser)
tests/test_http2_h2c.py:895
Method
test_chunked_payload_reaches_the_application
(self, parser)
tests/test_http2_h2c.py:2249
Method
test_chunked_then_gzip_rejected
Compression after chunked must be rejected.
tests/test_asgi_parser_validation.py:207
Method
test_chunked_then_identity_rejected
Identity after chunked must be rejected.
tests/test_asgi_parser_validation.py:195
Method
test_chunked_uppercase_hex
Uppercase hex chunk sizes should work.
tests/test_asgi_protocol_http.py:313
Method
test_chunked_with_extension
Test chunked with chunk extension.
tests/test_python_protocol.py:139
Method
test_chunked_with_extensions
Parse chunked body with chunk extensions.
tests/test_asgi_callback_parser.py:249
Method
test_chunks_are_read_as_they_arrive_and_credited_back
(self)
tests/test_http2_async_connection.py:1110
Function
test_ciphers
()
tests/test_ssl.py:60
Method
test_cl_te_conflict_rejected
Request with both Content-Length and Transfer-Encoding must be rejected.
tests/test_asgi_parser_validation.py:30
Method
test_cl_with_spaces_rejected
Content-Length with embedded spaces must be rejected.
tests/test_asgi_parser_validation.py:137
Method
test_class_attribute_workers_detected
App with workers=2 class attribute is detected by arbiter.
tests/dirty/test_per_app_worker_allocation.py:275
Method
test_cleanup_closes_all_apps
Test that cleanup closes all loaded apps.
tests/dirty/test_multi_app_routing.py:553
Method
test_cleanup_closes_apps
Test that cleanup closes all apps.
tests/test_dirty_worker.py:342
Method
test_cleanup_handles_app_close_error
Test that cleanup handles errors when closing apps.
tests/test_dirty_worker.py:850
Method
test_cleanup_handles_missing_pidfile
Test that cleanup handles non-existent pidfile gracefully.
tests/test_dirty_arbiter.py:217
Method
test_cleanup_handles_missing_socket
Test that cleanup handles non-existent socket file.
tests/test_dirty_worker.py:880
Method
test_cleanup_handles_tmp_close_error
Test that cleanup handles tmp.close() errors.
tests/test_dirty_worker.py:899
Method
test_cleanup_nonexistent_stream
(self)
tests/test_http2_connection.py:518
Method
test_cleanup_of_a_never_started_response_resets
(self)
tests/test_http2_connection.py:1945
Method
test_cleanup_old_files
Test file cleanup task.
examples/celery_alternative/tests/test_tasks.py:268
Method
test_cleanup_orphaned_ignores_untrusted_pidfile
A pidfile this user did not create must never make gunicorn signal a process: the file lives in the shared temporary directory.
tests/test_arbiter.py:953
Method
test_cleanup_orphaned_kills_existing_process
Verify cleanup kills orphaned dirty arbiter process.
tests/test_arbiter.py:911
Method
test_cleanup_orphaned_no_pidfile
Verify cleanup handles missing pidfile gracefully.
tests/test_arbiter.py:892
Method
test_cleanup_orphaned_sigkill_if_sigterm_fails
Verify cleanup sends SIGKILL if SIGTERM doesn't work.
tests/test_arbiter.py:927
Method
test_cleanup_orphaned_skipped_during_usr2
Verify cleanup is skipped during USR2 upgrade (master_pid != 0).
tests/test_arbiter.py:881
Method
test_cleanup_orphaned_stale_pidfile_no_process
A stale pidfile whose process is gone is removed, nothing signalled.
tests/test_arbiter.py:940
Method
test_cleanup_removes_pidfile
Test that cleanup removes the PID file.
tests/test_dirty_arbiter.py:198
Method
test_cleanup_removes_socket
Test that cleanup removes the socket file.
tests/test_dirty_worker.py:365
Method
test_cleanup_removes_socket
Test that cleanup removes the socket file.
tests/test_dirty_arbiter.py:165
Method
test_cleanup_removes_tmpdir
Test that cleanup removes the temp directory.
tests/test_dirty_arbiter.py:184
Method
test_cleanup_stream
(self)
tests/test_http2_async_connection.py:497
Method
test_cleanup_stream
(self)
tests/test_http2_connection.py:492
Method
test_cleanup_survives_reset_and_write_failures
(self)
tests/test_http2_async_connection.py:1251
Method
test_cleanup_survives_reset_and_write_failures
(self)
tests/test_http2_connection.py:1735
Method
test_cleanup_task
Test cleanup task execution.
examples/celery_alternative/tests/test_integration.py:315
Method
test_cleanup_without_pidfile
Test that cleanup works when no pidfile configured.
tests/test_dirty_arbiter.py:232
Method
test_cleanup_worker
Test worker cleanup method.
tests/test_dirty_arbiter.py:332
Method
test_cleanup_worker_cancels_consumer
Test that worker cleanup cancels consumer task and removes queue.
tests/test_dirty_arbiter.py:353
Method
test_cleanup_worker_queues_apps_for_respawn
Dead worker's apps added to _pending_respawns.
tests/test_dirty_arbiter.py:1403
Method
test_cleanup_write_failure_is_swallowed
(self)
tests/test_http2_connection.py:1762
Function
test_cli_overrides_config
()
tests/test_config.py:332
Function
test_cli_overrides_config_module
()
tests/test_config.py:339
Function
test_cli_overrides_enviroment_variables_module
(monkeypatch)
tests/test_config.py:471
Method
test_client_close
Server handles client-initiated close.
tests/docker/asgi_framework_compat/tests/test_websocket_scope.py:185
Function
test_client_close_delivers_disconnect
When the client closes, the app's next receive() returns websocket.disconnect with the client's code instead of waiting.
tests/test_asgi_websocket_enhanced.py:519
Function
test_client_connection_close_is_announced
(tmp_path)
tests/test_asgi_connection_close.py:79
Method
test_client_initiated_close
Test handling client-initiated connection close.
tests/test_http2_integration.py:435
Function
test_client_initiated_close_decrements_nr_conns
The already-working direction must keep working (no double decrement).
tests/test_asgi_nr_conns_shutdown.py:93
Method
test_client_key_none
Test 'client' key is None when peername not provided.
tests/test_asgi_compliance.py:346
Method
test_client_key_present
Test 'client' key is present when peername provided.
tests/test_asgi_compliance.py:332
Method
test_close
(self)
tests/test_http2_request.py:105
Method
test_close_abnormal
Test abnormal closure code (1006).
tests/test_asgi_websocket_protocol.py:97
Method
test_close_async_idempotent
Test that close_async can be called multiple times.
tests/test_dirty_client.py:88
Method
test_close_clears_socket
Test that close clears the socket.
tests/ctl/test_client.py:96
Method
test_close_code_1000_in_frame
Verify close code 1000 (normal) is in close frame.
tests/test_asgi_protocol_compat.py:337
Method
test_close_code_1001_going_away
Test close with code 1001 (going away).
tests/test_asgi_protocol_compat.py:352
← previous
next →
3,001–3,100 of 5,599, ranked by callers