MCPcopy Create free account

hub / github.com/benoitc/gunicorn / functions

Functions4,571 in github.com/benoitc/gunicorn

↓ 7 callersMethod_unmask
Unmask WebSocket payload data.
gunicorn/asgi/websocket.py:365
↓ 7 callersFunctionapp
Simplest possible application object
tests/support.py:19
↓ 7 callersFunctioncleanup_gunicorn
Clean up a gunicorn process.
tests/test_control_socket_integration.py:124
↓ 7 callersMethodcleanup_stream
Remove a stream after processing is complete. Args: stream_id: The stream ID to clean up
gunicorn/http2/connection.py:647
↓ 7 callersMethodclose
(self)
tests/test_dirty_arbiter.py:57
↓ 7 callersMethoderror
(self, msg, *args, **kwargs)
gunicorn/glogging.py:280
↓ 7 callersFunctionfind_free_port
Find a free port to bind to.
tests/test_control_socket_integration.py:41
↓ 7 callersMethodfinish_request
Handle completion of a request (called via method_queue on main thread).
gunicorn/workers/gthread.py:418
↓ 7 callersMethodfrom_dict
Deserialize error from protocol transmission. Creates an error instance from a serialized dict. The returned error will be an instanc
gunicorn/dirty/errors.py:34
↓ 7 callersFunctionget_app_workers_attribute
Get the workers class attribute from a dirty app without instantiating it. This is used by the arbiter to determine how many workers should
gunicorn/dirty/app.py:300
↓ 7 callersFunctionget_dirty_client
Get or create a thread-local sync client. This is the recommended way to get a client in sync HTTP workers. Args: timeout: Time
gunicorn/dirty/client.py:681
↓ 7 callersFunctionmake_error_response
Build an error response message dict. Args: request_id: Request identifier this responds to error: DirtyError instance or di
gunicorn/dirty/protocol.py:698
↓ 7 callersFunctionmake_request
Make a simple HTTP request and return the response body.
tests/test_signal_integration.py:59
↓ 7 callersFunctionmake_request
Make a simple HTTP request and return the response body.
tests/test_control_socket_integration.py:70
↓ 7 callersFunctionparse_command
Parse a command line into command and args. Args: line: Command line string Returns: Tuple of (command_string, args_lis
gunicorn/ctl/client.py:114
↓ 7 callersMethodpost_request
(worker, req, environ, resp)
gunicorn/config.py:2013
↓ 7 callersMethodpre_request
(worker, req)
gunicorn/config.py:1996
↓ 7 callersMethodreopen_files
(self)
gunicorn/glogging.py:390
↓ 7 callersMethodreset
Reset this stream with RST_STREAM. Args: error_code: HTTP/2 error code (default: CANCEL)
gunicorn/http2/stream.py:238
↓ 7 callersFunctionset_dirty_socket_path
Set the global dirty socket path (called during initialization).
gunicorn/dirty/client.py:657
↓ 7 callersMethodunread
(self, data)
gunicorn/http/unreader.py:51
↓ 7 callersFunctionwait_for_server
Wait until server is accepting connections.
tests/test_control_socket_integration.py:48
↓ 6 callersMethod_cleanup_orphaned_dirty_arbiter
Kill any orphaned dirty arbiter from a previous crash. Only runs on fresh start (master_pid == 0), not during USR2.
gunicorn/arbiter.py:838
↓ 6 callersMethod_create_mock_request
Create a mock HTTP request.
tests/test_asgi_protocol_http.py:436
↓ 6 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_protocol_http.py:425
↓ 6 callersMethod_create_protocol
Create a WebSocketProtocol instance.
tests/test_asgi_websocket_protocol.py:592
↓ 6 callersMethod_create_protocol
Create a WebSocketProtocol instance for testing.
tests/test_asgi_websocket_protocol.py:684
↓ 6 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_compliance.py:447
↓ 6 callersFunction_get_default_control_socket
Get default control socket path based on available directories. Prefers XDG_RUNTIME_DIR if available (standard on Linux, sometimes BSD), fall
gunicorn/config.py:3169
↓ 6 callersMethod_half_close_local
Transition to half-closed (local) state.
gunicorn/http2/stream.py:269
↓ 6 callersMethod_half_close_remote
Transition to half-closed (remote) state.
gunicorn/http2/stream.py:281
↓ 6 callersMethod_read_frame
Read a single WebSocket frame. Returns: tuple: (opcode, payload) or None if connection closed
gunicorn/asgi/websocket.py:262
↓ 6 callersMethodapp
(scope, receive, send)
tests/test_asgi_worker.py:285
↓ 6 callersMethodclose
Close the pipe file descriptors.
gunicorn/workers/gthread.py:158
↓ 6 callersMethodclose
Close the connection gracefully with GOAWAY.
gunicorn/http2/async_connection.py:545
↓ 6 callersFunctioncreate_mock_ssl_socket
Create a mock SSL socket for testing ALPN negotiation.
tests/test_http2_alpn.py:15
↓ 6 callersMethodcreate_worker
Create a worker for testing.
tests/test_gthread.py:918
↓ 6 callersMethodcreate_worker
Helper to create a ThreadWorker for testing.
tests/test_gthread.py:1572
↓ 6 callersFunctiondrain_body
Drain the request body.
tests/docker/asgi_compliance/apps/lifespan_app.py:273
↓ 6 callersMethodencode_message
Encode a message for transmission. Args: data: Dictionary to encode Returns: Length-prefixed JSON b
gunicorn/ctl/protocol.py:42
↓ 6 callersFunctionget_short_socket_path
Get a short socket path that won't exceed Unix socket path limits. macOS limits Unix socket paths to ~104 characters, so we use /tmp directly.
tests/test_control_socket_integration.py:141
↓ 6 callersMethodincrement
(self, name, value, sampling_rate=1.0)
gunicorn/instrument/statsd.py:116
↓ 6 callersMethodinit
(self)
gunicorn/workers/gthread.py:59
↓ 6 callersMethodinit
Initialize the pipe and queue.
gunicorn/workers/gthread.py:148
↓ 6 callersMethodinit_process
\ If you override this method in a subclass, the last statement in the function should be to call this method with super().ini
gunicorn/workers/base.py:86
↓ 6 callersMethodkill_process
Send a signal to a process in the container.
tests/docker/dirty_arbiter/test_parent_death.py:222
↓ 6 callersMethodkill_worker
Kill a worker by PID.
gunicorn/dirty/arbiter.py:1007
↓ 6 callersFunctionmake_worker
(graceful_timeout=1)
tests/test_asgi_nr_conns_shutdown.py:58
↓ 6 callersMethodnotify
Update heartbeat timestamp.
gunicorn/dirty/worker.py:138
↓ 6 callersFunctionopen_connection
(worker)
tests/test_asgi_nr_conns_shutdown.py:71
↓ 6 callersMethodparser
(self)
gunicorn/config.py:90
↓ 6 callersMethodread
Read data from the stream, using buffered data first. Args: size: Number of bytes to read. If None, returns all buffered
gunicorn/asgi/unreader.py:54
↓ 6 callersMethodreadline
Read a line from the body. Args: size: Maximum bytes to read Returns: bytes: A line of data
gunicorn/http2/request.py:46
↓ 6 callersMethodreload
(self)
gunicorn/arbiter.py:531
↓ 6 callersFunctionrequest
Make HTTP request and return JSON response.
examples/dirty_example/test_stash_integration.py:26
↓ 6 callersMethodreset_stream
Reset a stream with RST_STREAM. Args: stream_id: The stream ID to reset error_code: HTTP/2 error code (default: CANCE
gunicorn/http2/connection.py:596
↓ 6 callersMethodsend_error
Send an error response on a stream. Args: stream_id: The stream ID status_code: HTTP status code message:
gunicorn/http2/connection.py:581
↓ 6 callersMethodsend_response
Send a response on a stream. Args: stream_id: The stream ID to respond on status: HTTP status code (int)
gunicorn/http2/async_connection.py:360
↓ 6 callersFunctionsend_signal_to_dirty_arbiter
Send a signal to the dirty arbiter.
tests/docker/dirty_ttin_ttou/test_ttin_ttou_docker.py:93
↓ 6 callersMethodsend_trailers
Mark trailers as sent and close the stream. Args: trailers: List of (name, value) trailer tuples Raises: HTT
gunicorn/http2/stream.py:220
↓ 6 callersMethodsetup
(self, cfg)
gunicorn/glogging.py:195
↓ 6 callersFunctionstart_gunicorn
Start a gunicorn server with specified worker class and control socket.
tests/test_control_socket_integration.py:92
↓ 6 callersMethodstart_response
(self, status, headers, exc_info=None)
gunicorn/http/wsgi.py:320
↓ 6 callersMethodstop
Stop all workers.
gunicorn/dirty/arbiter.py:1109
↓ 6 callersMethodvalidate
Validate pidfile and make it stale if needed
gunicorn/pidfile.py:64
↓ 6 callersMethodwarning
(self, msg, *args, **kwargs)
gunicorn/glogging.py:283
↓ 6 callersMethodwrite
(self, data)
examples/dirty_example/test_worker_integration.py:45
↓ 6 callersMethodwrite_message_async
Write one message to an async writer. Args: writer: asyncio StreamWriter data: Message dictionary to send
gunicorn/ctl/protocol.py:159
↓ 5 callersFunction_build_request_parser
Construct a RequestParser that drains the given bytes.
tests/test_http.py:258
↓ 5 callersMethod_create_manager
Create a LifespanManager instance.
tests/test_asgi_lifespan.py:363
↓ 5 callersMethod_create_mock_request
Create a mock HTTP request.
tests/test_asgi_http_scope.py:114
↓ 5 callersMethod_create_mock_request
Create a mock HTTP request.
tests/test_asgi_http_scope.py:196
↓ 5 callersMethod_create_mock_request
Create a mock HTTP request.
tests/test_asgi_http_scope.py:274
↓ 5 callersMethod_create_mock_request
Create a mock HTTP request.
tests/test_asgi_compliance.py:37
↓ 5 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_http_scope.py:103
↓ 5 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_http_scope.py:185
↓ 5 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_http_scope.py:263
↓ 5 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_compliance.py:26
↓ 5 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_compliance.py:722
↓ 5 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_compliance.py:867
↓ 5 callersMethod_create_websocket_protocol
Create WebSocketProtocol with mock transport.
tests/test_asgi_protocol_compat.py:307
↓ 5 callersMethod_effective_peername
Return the client address advertised via PROXY protocol if any. Falls back to the transport peername when PROXY protocol is disabled,
gunicorn/asgi/protocol.py:1316
↓ 5 callersMethod_extract_close_code_from_frame
Extract close code from WebSocket close frame.
tests/test_asgi_protocol_compat.py:324
↓ 5 callersMethod_get_dirty_pidfile_path
Get the well-known PID file path for orphan detection. Uses self.proc_name (not self.cfg.proc_name) so that during USR2 the new maste
gunicorn/arbiter.py:827
↓ 5 callersMethod_handle_response
Handle response message, extracting result or raising error.
gunicorn/dirty/client.py:166
↓ 5 callersFunction_make_response
(method="GET", version=(1, 1), sendfile=False)
tests/test_http.py:376
↓ 5 callersMethod_send_body
Send response body chunk. Combines buffered headers with first body chunk for efficient write batching.
gunicorn/asgi/protocol.py:1381
↓ 5 callersMethod_setup_event_loop
Setup the asyncio event loop.
gunicorn/workers/gasgi.py:54
↓ 5 callersMethod_sock_send
(self, msg)
gunicorn/instrument/statsd.py:128
↓ 5 callersMethod_strip
(self, headers, status)
tests/test_asgi_streaming.py:390
↓ 5 callersMethodatoms
Gets atoms for log formatting.
gunicorn/glogging.py:300
↓ 5 callersFunctioncfg_file
()
tests/test_config.py:27
↓ 5 callersMethodcleanup_stream
Remove a stream after processing is complete.
gunicorn/http2/async_connection.py:583
↓ 5 callersMethodcopy
(self)
gunicorn/config.py:333
↓ 5 callersFunctioncreate_h2_connection
Create an HTTP/2 connection using the h2 library.
examples/http2_features/test_http2.py:32
↓ 5 callersMethodcreate_worker
Create a worker for testing.
tests/test_gthread.py:1198
↓ 5 callersMethoddecode_full
Decode a complete TLV-encoded value, ensuring all data is consumed. Args: data: Binary data to decode Returns:
gunicorn/dirty/tlv.py:284
↓ 5 callersMethoddefer
Queue a callback to be run on the main thread. The callback is added to the queue first, then a wake-up byte is written to the pipe.
gunicorn/workers/gthread.py:175
↓ 5 callersMethodfeed
Feed a body chunk directly (called by parser callback).
gunicorn/asgi/protocol.py:187
↓ 5 callersMethodfrom_samples
Calculate statistics from list of latency samples.
benchmarks/dirty_benchmark.py:78
← previousnext →201–300 of 4,571, ranked by callers