MCPcopy Create free account

hub / github.com/benoitc/gunicorn / functions

Functions5,599 in github.com/benoitc/gunicorn

↓ 3 callersMethodcreate_worker
Create a worker for testing.
tests/test_gthread.py:593
↓ 3 callersMethodcritical
(self, msg, *args, **kwargs)
gunicorn/instrument/statsd.py:47
↓ 3 callersFunctiondefault_ssl_context_factory
()
gunicorn/sock.py:283
↓ 3 callersMethoddirty_add
Spawn additional dirty workers. Sends a MANAGE message to the dirty arbiter to spawn workers. Args: count: Numb
gunicorn/ctl/handlers.py:308
↓ 3 callersMethoddirty_remove
Remove dirty workers. Sends a MANAGE message to the dirty arbiter to remove workers. Args: count: Number of dir
gunicorn/ctl/handlers.py:329
↓ 3 callersFunctiondrain_body
Drain the request body.
tests/docker/asgi_compliance/apps/main_app.py:239
↓ 3 callersMethodforce_close
(self)
gunicorn/http/wsgi.py:324
↓ 3 callersFunctiongenerate
()
examples/celery_alternative/app.py:157
↓ 3 callersMethodget_gunicorn_pids
Get PIDs of gunicorn processes.
tests/docker/per_app_allocation/test_per_app_e2e.py:137
↓ 3 callersFunctionget_header_value
Extract a header value from h2 headers list. h2 library may return headers as bytes or strings depending on version.
tests/test_http2_integration.py:26
↓ 3 callersMethodget_pseudo_headers
Extract HTTP/2 pseudo-headers from request headers. Returns: dict: Mapping of pseudo-header names to values (e.
gunicorn/http2/stream.py:403
↓ 3 callersMethodget_regular_headers
Get regular (non-pseudo) headers from request. Returns: list: List of (name, value) tuples for regular headers
gunicorn/http2/stream.py:416
↓ 3 callersMethodhandle_error
(self, req, client, addr, exc)
gunicorn/workers/base.py:202
↓ 3 callersMethodinit
Initialize database connection and cache.
examples/celery_alternative/tasks.py:301
↓ 3 callersMethodinit_signals
\ Initialize master signal handling. Most of the signals are queued. Child signals only wake up the master.
gunicorn/arbiter.py:225
↓ 3 callersMethodis_chunked
(self)
gunicorn/http/wsgi.py:425
↓ 3 callersMethodkill_dirty_arbiter
\ Send a signal to the dirty arbiter. :attr sig: `signal.SIG*` value
gunicorn/arbiter.py:935
↓ 3 callersMethodkill_workers
\ Kill all workers with the signal `sig` :attr sig: `signal.SIG*` value
gunicorn/arbiter.py:790
↓ 3 callersMethodload
(self)
tests/test_config.py:68
↓ 3 callersMethodlogs
(self, service)
tests/docker/stress/conftest.py:163
↓ 3 callersMethodmurder_workers
\ Kill unused/idle workers
gunicorn/arbiter.py:603
↓ 3 callersMethodping
Simple ping action.
tests/support_dirty_app.py:148
↓ 3 callersMethodproxy_allow_networks
Return cached network objects for proxy_allow_ips (internal use).
gunicorn/config.py:215
↓ 3 callersMethodread_message
Read a complete message from socket (sync). Args: sock: Socket to read from Returns: dict: Message
gunicorn/dirty/protocol.py:520
↓ 3 callersFunctionread_sse_events
Read SSE events from a streaming response. Stops when receiving a 'complete' or 'error' event, or max_events reached.
examples/celery_alternative/tests/test_integration.py:30
↓ 3 callersMethodreadlines
Read all lines from the body. Args: hint: Approximate byte count hint Returns: list: List of lines
gunicorn/http2/request.py:143
↓ 3 callersMethodreap_workers
Reap dead worker processes.
gunicorn/dirty/arbiter.py:1073
↓ 3 callersMethodreceive
(self, text_data=None, bytes_data=None)
tests/docker/asgi_framework_compat/frameworks/django_app/consumers.py:44
↓ 3 callersMethodrename
(self, path)
gunicorn/pidfile.py:48
↓ 3 callersMethodrequest
(self, variables, body=b"")
tests/test_asgi_uwsgi_protocol.py:65
↓ 3 callersMethodreset_stream
Reset a stream with RST_STREAM.
gunicorn/http2/async_connection.py:827
↓ 3 callersMethodrun
Run the dirty arbiter (blocking call).
gunicorn/dirty/arbiter.py:235
↓ 3 callersMethodrun
Run the main asyncio event loop.
gunicorn/dirty/worker.py:227
↓ 3 callersMethodrun
(self)
gunicorn/app/base.py:202
↓ 3 callersMethodrun_callbacks
Run queued callbacks. Called when the pipe is readable. Drains all available wake-up bytes and runs corresponding callbacks. The max_
gunicorn/workers/gthread.py:228
↓ 3 callersMethodset_accept_enabled
Enable or disable accepting new connections.
gunicorn/workers/gthread.py:298
↓ 3 callersMethodset_timeout
(self)
gunicorn/workers/gthread.py:125
↓ 3 callersMethodshow_all
Return overview of all processes (arbiter, web workers, dirty arbiter, dirty workers). Returns: Dictionary with complete
gunicorn/ctl/handlers.py:457
↓ 3 callersMethodshow_listeners
Return bound socket information. Returns: Dictionary with listeners list
gunicorn/ctl/handlers.py:195
↓ 3 callersMethodshow_workers
Return list of HTTP workers. Returns: Dictionary with workers list containing: - pid: Worker process ID
gunicorn/ctl/handlers.py:34
↓ 3 callersMethodshutdown
Signal shutdown and wait for completion. This should be called during graceful shutdown.
gunicorn/asgi/lifespan.py:104
↓ 3 callersMethodspawn_worker
Spawn a new dirty worker. Worker app assignment follows these priorities: 1. If there are pending respawns (from dead worker
gunicorn/dirty/arbiter.py:938
↓ 3 callersFunctionssl_context
(conf)
gunicorn/sock.py:282
↓ 3 callersMethodssl_context
(config, default_ssl_context_factory)
gunicorn/config.py:2172
↓ 3 callersMethodstop
(self)
tests/test_asgi_keepalive_timeout.py:54
↓ 3 callersMethodstop
(self)
tests/test_http2_live.py:77
↓ 3 callersFunctionsymlink_target_dir
Return the directory holding the target of *filename* if it is a symlink, otherwise None. Edits to the target don't generate events in the dir
gunicorn/reloader.py:19
↓ 3 callersFunctiontoxiproxy_reset
()
tests/docker/stress/conftest.py:215
↓ 3 callersMethodtracebacks
(self)
tests/test_asgi_uwsgi_protocol.py:81
↓ 3 callersMethodtracebacks
(self, service)
tests/docker/stress/conftest.py:167
↓ 3 callersMethodwait_disconnect
Block until the peer resets the stream or the connection ends.
gunicorn/http2/stream.py:270
↓ 3 callersMethodwait_for_signals
\ Wait for signals with timeout. Returns a list of signals that were received.
gunicorn/arbiter.py:417
↓ 3 callersMethodwakeup
Wake up the arbiter's main loop.
gunicorn/arbiter.py:396
↓ 3 callersMethodworker_add
Increase worker count. Args: count: Number of workers to add (default 1) Returns: Dictionary with a
gunicorn/ctl/handlers.py:227
↓ 3 callersMethodworker_int
(worker)
gunicorn/config.py:2011
↓ 3 callersMethodworker_kill
Gracefully terminate a specific worker. Args: pid: Worker process ID Returns: Dictionary with kille
gunicorn/ctl/handlers.py:278
↓ 3 callersMethodworker_remove
Decrease worker count. Args: count: Number of workers to remove (default 1) Returns: Dictionary wit
gunicorn/ctl/handlers.py:250
↓ 3 callersMethodwrite_message
Write a message to socket (sync). Args: sock: Socket to write to message: Message dict with 'type', 'id', an
gunicorn/dirty/protocol.py:560
↓ 3 callersFunctionws_echo
Echo text messages.
tests/docker/asgi_framework_compat/frameworks/quart_app/app.py:170
↓ 2 callersMethod__init__
(self)
gunicorn/http/unreader.py:13
↓ 2 callersMethod__init__
(self, client, name)
gunicorn/dirty/stash.py:350
↓ 2 callersMethod__init__
(self, message=None, error_code=None)
gunicorn/http2/errors.py:37
↓ 2 callersMethod__init__
(self, args=None)
tests/test_config.py:38
↓ 2 callersMethod_arm_keepalive_timer
Arm keepalive timeout timer after response completion.
gunicorn/asgi/protocol.py:1188
↓ 2 callersMethod_buffer_size
Get size of buffered data.
gunicorn/asgi/unreader.py:49
↓ 2 callersMethod_cancel_task_if_pending
Cancel the task if it's still pending after grace period.
gunicorn/asgi/protocol.py:1275
↓ 2 callersMethod_check_allowed_ip
Verify source IP is in the allowed list.
gunicorn/uwsgi/message.py:71
↓ 2 callersFunction_check_trusted_proxy
Check if peer address is in the trusted proxy list. Cached at connection start to avoid repeated IP parsing per request.
gunicorn/asgi/protocol.py:64
↓ 2 callersFunction_chunked_request
(chunks, after=b"")
tests/test_http.py:802
↓ 2 callersMethod_close
Close the connection.
gunicorn/dirty/stash.py:128
↓ 2 callersMethod_compute_access_log_enabled
(self)
gunicorn/glogging.py:368
↓ 2 callersMethod_conn
(self)
tests/test_http2_connection.py:1214
↓ 2 callersMethod_connection
(self)
tests/test_http2_h2c.py:2258
↓ 2 callersMethod_convert_h2_headers
Convert ASGI headers to HTTP/2 format (lowercase string names).
gunicorn/asgi/protocol.py:2493
↓ 2 callersMethod_count_control_frame
Close the connection when the peer sends control frames at flood rate.
gunicorn/http2/connection.py:553
↓ 2 callersMethod_create_masked_frame
Create a masked WebSocket frame. Args: fin: FIN bit (1 for final, 0 for continuation) opcode: Frame opcode
tests/test_asgi_websocket_protocol.py:929
↓ 2 callersFunction_create_mock_request
()
tests/test_asgi_response_headers.py:43
↓ 2 callersMethod_create_mock_request
Create a mock HTTP request.
tests/test_asgi_protocol_compat.py:73
↓ 2 callersMethod_create_mock_request
Create a mock HTTP request.
tests/test_asgi_forwarded_headers.py:39
↓ 2 callersMethod_create_mock_request
Create a mock HTTP request.
tests/test_asgi_forwarded_headers.py:107
↓ 2 callersMethod_create_mock_request
Create a mock HTTP request.
tests/test_asgi_forwarded_headers.py:263
↓ 2 callersMethod_create_mock_request
Create a mock HTTP request.
tests/test_asgi_forwarded_headers.py:366
↓ 2 callersFunction_create_protocol
()
tests/test_asgi_response_headers.py:21
↓ 2 callersMethod_create_protocol
Create a WebSocketProtocol instance.
tests/test_asgi_websocket_protocol.py:289
↓ 2 callersMethod_create_protocol
Create a WebSocketProtocol instance for testing.
tests/test_asgi_websocket_protocol.py:919
↓ 2 callersMethod_create_protocol
Create a WebSocketProtocol instance.
tests/test_asgi_websocket_enhanced.py:454
↓ 2 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_forwarded_headers.py:26
↓ 2 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_forwarded_headers.py:96
↓ 2 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_forwarded_headers.py:252
↓ 2 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_forwarded_headers.py:355
↓ 2 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_error_handling.py:223
↓ 2 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_error_handling.py:281
↓ 2 callersMethod_create_protocol_with_state
Create an ASGIProtocol with worker state.
tests/test_asgi_compliance.py:644
↓ 2 callersMethod_create_websocket_protocol
Create WebSocketProtocol with mock transport.
tests/test_asgi_protocol_compat.py:763
↓ 2 callersMethod_deny
Refuse the handshake with an HTTP response and close.
gunicorn/asgi/websocket.py:204
↓ 2 callersFunction_environment
(data)
benchmarks/asgi/report.py:43
↓ 2 callersMethod_events
(self, client, client_sock)
tests/test_http2_connection.py:1973
↓ 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:160
↓ 2 callersFunction_filled
A deterministic body of ``size`` bytes.
tests/docker/stress/apps/stress_app.py:32
↓ 2 callersFunction_group
(runs)
benchmarks/asgi/report.py:31
← previousnext →601–700 of 5,599, ranked by callers