MCPcopy Create free account

hub / github.com/benoitc/gunicorn / functions

Functions4,571 in github.com/benoitc/gunicorn

↓ 2 callersMethod_create_websocket_protocol
Create WebSocketProtocol with mock transport.
tests/test_asgi_protocol_compat.py:763
↓ 2 callersMethod_extract_request_info
Extract HTTP request info from uWSGI vars. Header Mapping (CGI/WSGI to HTTP): The uWSGI protocol passes HTTP headers using CGI-style
gunicorn/uwsgi/message.py:159
↓ 2 callersMethod_handle_sigchld
Handle SIGCHLD - reap dead workers.
gunicorn/dirty/arbiter.py:398
↓ 2 callersMethod_handle_websocket
Handle WebSocket upgrade request.
gunicorn/asgi/protocol.py:925
↓ 2 callersFunction_ip_in_allow_list
Check if IP address is in the allow list. Args: ip_str: The IP address string to check allow_list: The original allow list (strin
gunicorn/http/message.py:160
↓ 2 callersMethod_is_valid_token
Check if data contains only RFC 9110 token characters.
gunicorn/asgi/parser.py:833
↓ 2 callersMethod_load_model
Simulate loading a model (expensive operation).
examples/dirty_example/dirty_app.py:51
↓ 2 callersMethod_make_stream
(self, headers)
tests/test_http2_request.py:372
↓ 2 callersMethod_on_body
Callback: received body data chunk.
gunicorn/asgi/protocol.py:559
↓ 2 callersMethod_parse_vars
Parse uWSGI vars block into key-value pairs. Format: key_size (2 bytes LE) + key + val_size (2 bytes LE) + value
gunicorn/uwsgi/message.py:120
↓ 2 callersMethod_peer_trusted_for_forwarded
Return the (secure_scheme_headers, forwarder_headers) the peer is allowed to set. When the peer's address is not in ``forwarded_allow_ips`` (
gunicorn/http/message.py:218
↓ 2 callersMethod_pop_chunk
Pop a chunk and return the appropriate message.
gunicorn/asgi/protocol.py:252
↓ 2 callersMethod_response_forbids_content_length
(status)
gunicorn/http/wsgi.py:363
↓ 2 callersMethod_response_forbids_content_length
Per RFC 9110 §6.4.2 a server MUST NOT send Content-Length on 1xx or 204 responses. HEAD and 304 are NOT covered: HEAD MAY include the
gunicorn/asgi/protocol.py:1357
↓ 2 callersMethod_response_omits_body
(method, status)
gunicorn/http/wsgi.py:353
↓ 2 callersMethod_restart_after_fork
Restart server in parent after fork (called by fork handler).
gunicorn/ctl/server.py:178
↓ 2 callersMethod_send_manage_message
Send a worker management message to the dirty arbiter. Args: operation: "add" or "remove" count: Number of w
gunicorn/ctl/handlers.py:350
↓ 2 callersMethod_send_response_start
Send HTTP response status and headers. Uses cached status lines and headers for common cases to avoid repeated string formatting and
gunicorn/asgi/protocol.py:1266
↓ 2 callersMethod_shutdown
Initiate async shutdown.
gunicorn/dirty/worker.py:205
↓ 2 callersFunction_sock_type
(addr)
gunicorn/sock.py:152
↓ 2 callersMethod_start_worker_consumer
Start a consumer task for a worker's request queue.
gunicorn/dirty/arbiter.py:497
↓ 2 callersMethod_strip_body_framing_headers
Remove framing headers that must not appear on a no-body response. Transfer-Encoding is always stripped (chunked framing implies a body
gunicorn/asgi/protocol.py:1366
↓ 2 callersMethod_unregister_worker
Unregister a worker's apps when it exits. Removes the worker from all tracking maps. Args: worker_pid: The PID
gunicorn/dirty/arbiter.py:217
↓ 2 callersMethod_wait_for_ready
Wait for gunicorn to be ready.
tests/docker/dirty_arbiter/test_parent_death.py:101
↓ 2 callersMethodadd_extra_file
(self, filename)
gunicorn/reloader.py:33
↓ 2 callersMethodadd_watch
(self, dirname, mask=None)
tests/test_reload.py:93
↓ 2 callersFunctionapp
(environ, start_response)
gunicorn/util.py:661
↓ 2 callersFunctionassert_readline
(payload, size, expected)
tests/test_http.py:28
↓ 2 callersFunctionbase_environ
(cfg)
gunicorn/http/wsgi.py:78
↓ 2 callersFunctionbenchmark_arbiter_forwarding
Benchmark arbiter message forwarding throughput.
benchmarks/dirty_streaming.py:248
↓ 2 callersFunctionbenchmark_async_client_streaming
Benchmark DirtyAsyncStreamIterator directly. Measures async iterator overhead vs raw message reading.
benchmarks/dirty_streaming.py:465
↓ 2 callersFunctionbenchmark_async_vs_sync_client_streaming
Compare stream() vs stream_async() performance with the same workload.
benchmarks/dirty_streaming.py:582
↓ 2 callersFunctionbenchmark_streaming_latency
Benchmark time-to-first-chunk and time-to-last-chunk.
benchmarks/dirty_streaming.py:285
↓ 2 callersFunctionbenchmark_worker_streaming_throughput
Benchmark worker streaming throughput with various chunk sizes.
benchmarks/dirty_streaming.py:207
↓ 2 callersFunctioncfg_module
()
tests/test_config.py:23
↓ 2 callersFunctioncheck_environ
A context manager that asserts post-conditions of ``listen_fds`` at exit. This helper is used to ease checking of the test post-conditions f
tests/test_systemd.py:15
↓ 2 callersMethodclose
Close the client connection.
gunicorn/dirty/stash.py:322
↓ 2 callersMethodclose
(self)
tests/docker/per_app_allocation/app.py:152
↓ 2 callersMethodconnection_made
Called when a connection is established.
gunicorn/asgi/protocol.py:397
↓ 2 callersFunctioncreate
(req, sock, client, server, cfg)
gunicorn/http/wsgi.py:188
↓ 2 callersFunctioncreate_arbiter
Create a test arbiter for benchmarks.
benchmarks/dirty_streaming.py:147
↓ 2 callersMethodcreate_worker
Create a worker instance for testing.
tests/test_gtornado.py:54
↓ 2 callersMethodcreate_worker
Create a worker instance for testing.
tests/test_gtornado.py:92
↓ 2 callersMethodcreate_worker
Create a worker for testing.
tests/test_gtornado.py:139
↓ 2 callersMethodcreate_worker
Create a worker for testing.
tests/test_gtornado.py:184
↓ 2 callersMethodcreate_worker
Create a worker for testing.
tests/test_gtornado.py:226
↓ 2 callersMethodcreate_worker
Create a worker for testing.
tests/test_gtornado.py:465
↓ 2 callersMethodcreate_worker
Create a worker for testing.
tests/test_asgi_worker.py:132
↓ 2 callersMethodcreate_worker
Create a worker for testing.
tests/test_asgi_worker.py:228
↓ 2 callersMethodcreate_worker
Create a worker for testing.
tests/test_gthread.py:569
↓ 2 callersMethodcreate_worker
Create a worker for testing.
tests/test_gthread.py:821
↓ 2 callersMethodcreate_worker
Create a worker for testing.
tests/test_gthread.py:1293
↓ 2 callersFunctioncreate_wsgi_config
Create a config for WSGI parsing.
benchmarks/http_parser_benchmark.py:79
↓ 2 callersMethoddebug
(self, msg, *args)
examples/dirty_example/test_worker_integration.py:30
↓ 2 callersFunctiondecode_hex_escapes
Decode hex escape sequences like \\xAB in test data.
tests/treq_asgi.py:94
↓ 2 callersFunctiondecode_hex_escapes
Decode hex escape sequences like \\xAB in test data.
tests/treq.py:54
↓ 2 callersFunctiondefault_environ
(req, sock, cfg)
gunicorn/http/wsgi.py:91
↓ 2 callersMethoddefault_headers
(self)
gunicorn/http/wsgi.py:414
↓ 2 callersMethoddirty_post_fork
(arbiter, worker)
gunicorn/config.py:3115
↓ 2 callersMethoddirty_worker_exit
(arbiter, worker)
gunicorn/config.py:3153
↓ 2 callersMethoddirty_worker_init
(worker)
gunicorn/config.py:3134
↓ 2 callersMethoddo_load_config
Loads the configuration
gunicorn/app/base.py:29
↓ 2 callersMethoddrain_body
Drain unread body data. Should be called before reusing connection for keepalive.
gunicorn/asgi/uwsgi.py:149
↓ 2 callersMethodencode_chunk
Encode a chunk message for streaming responses. Args: request_id: Request identifier this chunk belongs to d
gunicorn/dirty/protocol.py:256
↓ 2 callersMethodencode_end
Encode an end-of-stream message. Args: request_id: Request identifier this ends Returns: bytes: Com
gunicorn/dirty/protocol.py:274
↓ 2 callersMethodencode_error
Encode an error response message. Args: request_id: Request identifier this responds to error: DirtyError in
gunicorn/dirty/protocol.py:225
↓ 2 callersMethodencode_hybi
Encode a HyBi style WebSocket frame. Optional opcode: 0x0 - continuation 0x1 - text frame (base64 encode buf)
examples/websocket/gevent_websocket.py:162
↓ 2 callersMethodencode_request
Encode a request message. Args: request_id: Unique request identifier (uint64) app_path: Import path of the
gunicorn/dirty/protocol.py:180
↓ 2 callersMethodexception
(self, msg, *args, **kwargs)
gunicorn/glogging.py:292
↓ 2 callersMethodexec
Execute a command in the container.
tests/docker/per_app_allocation/test_per_app_e2e.py:117
↓ 2 callersMethodfileno
Return the readable file descriptor for selector registration.
gunicorn/workers/gthread.py:171
↓ 2 callersFunctionformat_response
Format response data based on command. Args: command: Original command string data: Response data dictionary Returns:
gunicorn/ctl/cli.py:234
↓ 2 callersFunctiongenerate
()
tests/docker/asgi_compliance/apps/framework_apps.py:136
↓ 2 callersFunctiongenerate
()
tests/docker/asgi_framework_compat/frameworks/litestar_app/app.py:124
↓ 2 callersFunctiongenerate
()
tests/docker/asgi_framework_compat/frameworks/starlette_app/app.py:154
↓ 2 callersFunctiongenerate
()
tests/docker/asgi_framework_compat/frameworks/fastapi_app/app.py:155
↓ 2 callersFunctiongenerate
()
tests/docker/asgi_framework_compat/frameworks/django_app/views.py:83
↓ 2 callersFunctiongenerate
()
tests/docker/asgi_framework_compat/frameworks/quart_app/app.py:113
↓ 2 callersMethodget_data
(self, unreader, buf)
gunicorn/http/body.py:114
↓ 2 callersFunctionget_default_config_file
()
gunicorn/config.py:602
↓ 2 callersMethodget_logs
Get container logs.
tests/docker/per_app_allocation/test_per_app_e2e.py:128
↓ 2 callersMethodget_thread_pool
Override this method to customize how the thread pool is created
gunicorn/workers/gthread.py:245
↓ 2 callersMethodgetsize
(self, size)
gunicorn/http/body.py:205
↓ 2 callersMethodhandle_dirty_arbiter_exit
\ Report the dirty arbiter exit status and forget the process. Called from both reaping paths: the targeted waitpid below, and
gunicorn/arbiter.py:940
↓ 2 callersFunctionhas_logging_config
(config_file)
gunicorn/app/pasterapp.py:26
↓ 2 callersMethodheartbeat
(self)
gunicorn/workers/gtornado.py:53
↓ 2 callersMethodhelp
Return list of available commands. Returns: Dictionary with commands and descriptions
gunicorn/ctl/handlers.py:561
↓ 2 callersMethodinit
Initialize the application. Called once when the dirty worker starts, after the app instance is created. Use this for expens
gunicorn/dirty/app.py:98
↓ 2 callersMethodinit
Called once when dirty worker starts.
examples/dirty_example/dirty_app.py:37
↓ 2 callersMethodinit_signals
Set up signal handlers.
gunicorn/dirty/arbiter.py:266
↓ 2 callersMethodinit_signals
Set up signal handlers.
gunicorn/dirty/worker.py:178
↓ 2 callersMethodis_already_handled
(self, respiter)
gunicorn/workers/base_async.py:29
↓ 2 callersMethodis_chunked
(self)
gunicorn/http/wsgi.py:401
↓ 2 callersFunctionis_compose_available
Check if docker compose is available.
tests/docker/uwsgi/conftest.py:35
↓ 2 callersFunctionis_docker_available
Check if Docker is available.
tests/docker/uwsgi/conftest.py:22
↓ 2 callersMethodkill_process
Send a signal to a process in the container.
tests/docker/per_app_allocation/test_per_app_e2e.py:169
↓ 2 callersMethodload_config_from_file
(self, filename)
gunicorn/app/base.py:151
↓ 2 callersMethodload_default_config
(self)
gunicorn/app/base.py:41
↓ 2 callersMethodload_wsgi
(self)
gunicorn/workers/base.py:146
↓ 2 callersMethodlog
Log a given statistic if metric, value and type are present
gunicorn/instrument/statsd.py:68
← previousnext →501–600 of 4,571, ranked by callers