MCPcopy Create free account

hub / github.com/benoitc/gunicorn / functions

Functions5,599 in github.com/benoitc/gunicorn

↓ 4 callersMethodload
(self)
gunicorn/app/base.py:49
↓ 4 callersFunctionload_dirty_apps
Load multiple dirty apps from a list of import paths. Args: import_paths: List of import path strings Returns: dict: Ma
gunicorn/dirty/app.py:281
↓ 4 callersFunctionmake_asgi_protocol
(cfg, loop)
tests/test_http2_h2c.py:520
↓ 4 callersFunctionmake_request
Build a request message dict. Args: request_id: Unique request identifier (int or str) app_path: Import path of the dirty ap
gunicorn/dirty/protocol.py:655
↓ 4 callersFunctionmake_response
Build a success response message dict. Args: request_id: Request identifier this responds to result: Result value Retur
gunicorn/dirty/protocol.py:680
↓ 4 callersMethodmanage_workers
\ Maintain the number of workers by spawning or killing as required.
gunicorn/arbiter.py:694
↓ 4 callersMethodmay_upgrade
False only when the request is known to carry no Upgrade field.
gunicorn/asgi/parser.py:1159
↓ 4 callersMethodmurder_keepalived
Close expired keepalive connections (or all if forced).
gunicorn/workers/gthread.py:352
↓ 4 callersMethodpause_writing
(self)
gunicorn/asgi/protocol.py:261
↓ 4 callersMethodreadlines
(self, size=None)
gunicorn/http/body.py:328
↓ 4 callersMethodreceive_trailers
Process received trailing headers. Args: trailers: List of (name, value) tuples
gunicorn/http2/stream.py:172
↓ 4 callersMethodrecv
(self, size)
tests/test_http2_connection.py:58
↓ 4 callersMethodreset
Reset for next request (keepalive).
gunicorn/asgi/parser.py:276
↓ 4 callersMethodreset
(self)
tests/test_statsd.py:53
↓ 4 callersMethodresume_writing
(self)
gunicorn/asgi/protocol.py:266
↓ 4 callersMethodrun_k6
(self, config, scenario, extra_env=None, timeout=1200)
tests/docker/stress/conftest.py:125
↓ 4 callersMethodsend_bytes
(self)
tests/treq.py:110
↓ 4 callersMethodsend_data
Send data on a stream. Args: stream_id: The stream ID data: Body data bytes end_stream: Whether this ends
gunicorn/http2/async_connection.py:696
↓ 4 callersMethodsend_trailers
Send trailing headers on a stream. Trailers are headers sent after the response body, commonly used for gRPC status codes, checksums,
gunicorn/http2/async_connection.py:762
↓ 4 callersFunctionsent_data
(conn)
tests/test_http2_response.py:25
↓ 4 callersMethodshould_close
Determine if the connection should be closed after this request.
gunicorn/uwsgi/message.py:234
↓ 4 callersMethodspawn_dirty_arbiter
\ Spawn the dirty arbiter process. The dirty arbiter manages a separate pool of workers for long-running, blocking operations
gunicorn/arbiter.py:889
↓ 4 callersMethodwait_closed
(self)
tests/test_dirty_integration.py:51
↓ 4 callersMethodwait_for_and_dispatch_events
Wait for events and dispatch callbacks.
gunicorn/workers/gthread.py:395
↓ 4 callersMethodwait_for_data
Wait for data to be available on the socket. Uses selectors to wait for the socket to become readable within the given timeout. This
gunicorn/workers/gthread.py:129
↓ 4 callersMethodwait_for_no_gunicorn
Wait until no gunicorn processes are running.
tests/docker/dirty_arbiter/test_parent_death.py:243
↓ 3 callersMethod_aborted
(self, what)
gunicorn/http2/response.py:41
↓ 3 callersFunction_asgi_response
(http_parser, raw)
tests/test_transfer_encoding.py:55
↓ 3 callersFunction_base_vars
(method, path, query="", length=0)
tests/test_asgi_uwsgi_protocol.py:103
↓ 3 callersMethod_build_masked_frame
Build a client-to-server masked WebSocket frame.
tests/test_asgi_protocol_compat.py:673
↓ 3 callersMethod_cancel_keepalive_timer
Cancel keepalive timer when new request arrives.
gunicorn/asgi/protocol.py:1198
↓ 3 callersMethod_cfg
(self, mode)
tests/test_http2_h2c.py:714
↓ 3 callersFunction_chunked_reader
(unreader, field_size=8190, headers=8190 * 32)
tests/test_http.py:578
↓ 3 callersMethod_close_async
Close the async connection.
gunicorn/dirty/client.py:307
↓ 3 callersFunction_compose
(*args, **kwargs)
tests/docker/h2spec/conftest.py:21
↓ 3 callersMethod_conn
(self)
tests/test_http2_async_connection.py:1039
↓ 3 callersMethod_conn
(self)
tests/test_http2_connection.py:1271
↓ 3 callersFunction_connection
(http_parser, peer="127.0.0.1", **settings)
tests/test_asgi_config_cache.py:42
↓ 3 callersMethod_create_mock_http2_request
Create a mock HTTP/2 request with priority.
tests/test_asgi_compliance.py:573
↓ 3 callersMethod_create_mock_request
Create a mock HTTP request.
tests/test_asgi_protocol_compat.py:232
↓ 3 callersMethod_create_mock_request
Create a mock HTTP request.
tests/test_asgi_http_scope.py:38
↓ 3 callersMethod_create_mock_request
Create a mock HTTP request.
tests/test_asgi_compliance.py:656
↓ 3 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_protocol_compat.py:217
↓ 3 callersMethod_create_protocol
Create WebSocketProtocol with mock transport.
tests/test_asgi_protocol_compat.py:579
↓ 3 callersMethod_create_protocol
Create WebSocketProtocol with mock transport.
tests/test_asgi_protocol_compat.py:656
↓ 3 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_http_scope.py:25
↓ 3 callersMethod_create_protocol
Create a WebSocketProtocol instance.
tests/test_asgi_websocket_enhanced.py:65
↓ 3 callersMethod_create_protocol
Create a WebSocketProtocol with optional subprotocols.
tests/test_asgi_websocket_enhanced.py:144
↓ 3 callersMethod_create_protocol
Create a WebSocketProtocol instance.
tests/test_asgi_websocket_enhanced.py:205
↓ 3 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_compliance.py:562
↓ 3 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_error_handling.py:27
↓ 3 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_error_handling.py:127
↓ 3 callersFunction_done
(protocol)
tests/test_asgi_config_cache.py:54
↓ 3 callersMethod_drain
Feed the client what the server wrote since ``since``.
tests/test_http2_connection.py:1326
↓ 3 callersMethod_feed_callback_parser
Feed data to callback parser, handling parse errors. Returns True if parsing should continue, False if connection was closed.
gunicorn/asgi/protocol.py:1078
↓ 3 callersMethod_find_line
Return the index of the next CRLF in the buffer, or -1. Only bytes not scanned on a previous call are scanned again, and a buffer tha
gunicorn/asgi/parser.py:512
↓ 3 callersFunction_get_h1c
Lazily import gunicorn_h1c if available.
tests/treq_asgi.py:42
↓ 3 callersMethod_handle_http2_connection
Handle an HTTP/2 connection. ``upgrade`` is set when the connection arrives over Upgrade: h2c and carries ``(settings, http1_req, bod
gunicorn/asgi/protocol.py:2327
↓ 3 callersFunction_handshake
(http_parser, version=b"13", key=KEY)
tests/test_asgi_websocket_handshake.py:20
↓ 3 callersMethod_http1_buffered
Bytes held for HTTP/1 that the app has not taken yet. The body chunks waiting in the receiver, plus what the pure-Python parser holds
gunicorn/asgi/protocol.py:1146
↓ 3 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:165
↓ 3 callersMethod_maybe_resume_reading
Resume a reader paused by data_received once the loop caught up. Only the HTTP/1 loop used to resume; an HTTP/2 connection that once
gunicorn/asgi/protocol.py:2446
↓ 3 callersMethod_open
(self, keepalive=2, timeout=30)
tests/test_http2_connection.py:1957
↓ 3 callersMethod_orphan_setup
(self, tmp_path, pid="12345")
tests/test_arbiter.py:901
↓ 3 callersMethod_parser
(self, parser)
tests/test_http2_h2c.py:1000
↓ 3 callersFunction_pre_request_hook
The pre_request hook to call, or None when calling it would do nothing: the default hook only logs the request at debug level, through a logge
gunicorn/asgi/protocol.py:561
↓ 3 callersMethod_race
(self, action)
tests/test_http2_async_connection.py:1343
↓ 3 callersFunction_request
(sock, path)
tests/test_gthread_keepalive_shutdown.py:69
↓ 3 callersMethod_reset_buffer
Reset buffer for reuse instead of creating new BytesIO.
gunicorn/asgi/unreader.py:36
↓ 3 callersFunction_reset_code
(events, stream_id=1)
tests/test_http2_live.py:166
↓ 3 callersMethod_reset_quietly
Queue RST_STREAM for a stream h2 knows about, ignoring a closed one.
gunicorn/http2/connection.py:574
↓ 3 callersMethod_reset_quietly
Queue RST_STREAM for a stream h2 knows about, ignoring a closed one.
gunicorn/http2/async_connection.py:516
↓ 3 callersMethod_resets
(self, client, sock, since)
tests/test_http2_connection.py:2174
↓ 3 callersFunction_run
(headers, msg_type="http.response.start")
tests/test_asgi_response_headers.py:59
↓ 3 callersFunction_run
(faults_stack, env)
tests/docker/stress/test_faults.py:18
↓ 3 callersFunction_run_under_load
Start a constant-rate load, fire ``fault`` mid-run, return the k6 result.
tests/docker/stress/test_resilience.py:58
↓ 3 callersMethod_send
ASGI send callable.
gunicorn/asgi/websocket.py:239
↓ 3 callersMethod_send_frame
Send a WebSocket frame. Server frames are not masked (RFC 6455).
gunicorn/asgi/websocket.py:584
↓ 3 callersFunction_serve
(protocol, transport, count)
tests/test_asgi_config_cache.py:32
↓ 3 callersFunction_serve
(http_parser, app)
tests/test_asgi_response_wire.py:213
↓ 3 callersMethod_serve
(self, app, mode)
tests/test_asgi_lifespan.py:462
↓ 3 callersMethod_served_get
(self)
tests/test_http2_connection.py:2114
↓ 3 callersMethod_shutdown
Initiate async shutdown.
gunicorn/dirty/arbiter.py:341
↓ 3 callersMethod_start_http1
Commit to HTTP/1.x and replay anything already read. Called straight from connection_made(), and again when h2c sniffing gives up on
gunicorn/asgi/protocol.py:757
↓ 3 callersMethod_stop_for_fork
Stop server before fork (called by fork handler).
gunicorn/ctl/server.py:147
↓ 3 callersMethod_v2_header
(fam_proto, addr_payload)
tests/test_asgi_proxy_protocol.py:53
↓ 3 callersMethod_wake_waiter
Wake up any pending receive() call.
gunicorn/asgi/protocol.py:416
↓ 3 callersMethod_will_close
Return True when the connection is closed after this response. Single source of truth for the keepalive decision: ``send`` consults it
gunicorn/asgi/protocol.py:1959
↓ 3 callersMethod_worker_monitor
Periodically check worker health and manage pool.
gunicorn/dirty/arbiter.py:386
↓ 3 callersMethodabort_stream
Reset a stream, drop it, and tell the peer. Safe on a stream h2 already closed and on a dead socket.
gunicorn/http2/async_connection.py:831
↓ 3 callersFunctionadd_toxic
(name, toxic_type, attributes, stream="downstream", toxicity=1.0)
tests/docker/stress/conftest.py:219
↓ 3 callersFunctionapp
WSGI application that demonstrates dirty worker integration.
examples/dirty_example/wsgi_app.py:30
↓ 3 callersMethodcan_sendfile
(self)
gunicorn/http/wsgi.py:514
↓ 3 callersMethodchdir
(self)
gunicorn/app/base.py:84
↓ 3 callersMethodcheck_config
Validate configuration for ASGI worker.
gunicorn/workers/gasgi.py:42
↓ 3 callersMethodclose
(self)
gunicorn/workers/workertmp.py:52
↓ 3 callersMethodclose_async
Close the async connection.
gunicorn/dirty/client.py:318
↓ 3 callersFunctioncreate_worker
Create a test worker for benchmarks.
benchmarks/dirty_streaming.py:124
↓ 3 callersMethodcreate_worker
Create a worker for testing.
tests/test_gtornado.py:347
↓ 3 callersMethodcreate_worker
Create a worker for testing.
tests/test_asgi_worker.py:172
← previousnext →501–600 of 5,599, ranked by callers