MCPcopy Create free account

hub / github.com/benoitc/gunicorn / functions

Functions4,774 in github.com/benoitc/gunicorn

↓ 8 callersMethodnotify
\ Your worker subclass must arrange to have this method called once every ``self.timeout`` seconds. If you fail in accomplishing
gunicorn/workers/base.py:71
↓ 8 callersMethodread_into
Read data from unreader and append to bytearray buffer.
gunicorn/http/message.py:651
↓ 8 callersFunctionrun_async_handle
Drive AsyncWorker.handle() over a socketpair. Returns the worker. ``close_client`` gives the HTTP/1 path an EOF to stop on. An upgrade needs
tests/test_http2_h2c.py:390
↓ 8 callersMethodstream_chunks
Stream response chunks from URL.
tests/docker/asgi_compliance/conftest.py:337
↓ 8 callersFunctionupgrade_request
An Upgrade: h2c request, optionally carrying a payload.
tests/test_http2_h2c.py:812
↓ 8 callersMethodwait_closed
(self)
tests/test_dirty_worker.py:87
↓ 8 callersMethodwsgi
(self)
gunicorn/app/base.py:64
↓ 7 callersMethod_base
(self, **extra)
tests/test_http2_request.py:758
↓ 7 callersMethod_close_worker_connection
Close connection to a worker.
gunicorn/dirty/arbiter.py:650
↓ 7 callersMethod_create_manager
Create a LifespanManager instance.
tests/test_asgi_lifespan.py:121
↓ 7 callersMethod_create_mock_request
Create a mock WebSocket upgrade request.
tests/test_asgi_http_scope.py:368
↓ 7 callersMethod_create_mock_request
Create a mock HTTP request.
tests/test_asgi_websocket_protocol.py:437
↓ 7 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_http_scope.py:357
↓ 7 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_websocket_protocol.py:425
↓ 7 callersMethod_handle_http_request
Handle a single HTTP request.
gunicorn/asgi/protocol.py:1115
↓ 7 callersFunction_normalize_sockaddr
Normalize socket address to ASGI-compatible (host, port) tuple. ASGI spec requires server/client to be (host, port) tuples. IPv6 sockets retu
gunicorn/asgi/protocol.py:42
↓ 7 callersMethod_omits
(self, method, status)
tests/test_asgi_streaming.py:354
↓ 7 callersMethod_protocol
(self, cfg, peername=TRUSTED_ADDR)
tests/test_http2_h2c.py:854
↓ 7 callersMethod_signal_handler
Handle signals.
gunicorn/dirty/arbiter.py:280
↓ 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 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:449
↓ 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:2028
↓ 7 callersMethodpre_request
(worker, req)
gunicorn/config.py:2011
↓ 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 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:683
↓ 7 callersFunctionset_dirty_socket_path
Set the global dirty socket path (called during initialization).
gunicorn/dirty/client.py:657
↓ 7 callersMethodstart_response
(self, status, headers, exc_info=None)
gunicorn/http/wsgi.py:329
↓ 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:3229
↓ 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_protocol
(self, mode)
tests/test_http2_h2c.py:939
↓ 6 callersMethod_read_frame
Read a single WebSocket frame. Returns: tuple: (opcode, payload) or None if connection closed
gunicorn/asgi/websocket.py:262
↓ 6 callersMethod_req
(self, headers)
tests/test_http2_h2c.py:671
↓ 6 callersMethod_send_error_response
Send an error response.
gunicorn/asgi/protocol.py:1583
↓ 6 callersMethodapp
(scope, receive, send)
tests/test_asgi_worker.py:285
↓ 6 callersMethodclose
Close the pipe file descriptors.
gunicorn/workers/gthread.py:189
↓ 6 callersMethodclose
Close the connection gracefully with GOAWAY.
gunicorn/http2/async_connection.py:606
↓ 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:62
↓ 6 callersMethodinit
Initialize the pipe and queue.
gunicorn/workers/gthread.py:179
↓ 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:87
↓ 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:91
↓ 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:51
↓ 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:698
↓ 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:415
↓ 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 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 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_cfg
(self, mode)
tests/test_http2_h2c.py:276
↓ 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
← previousnext →201–300 of 4,774, ranked by callers