MCPcopy Create free account

hub / github.com/benoitc/gunicorn / functions

Functions5,599 in github.com/benoitc/gunicorn

↓ 5 callersMethodread
Read `size` bytes (or the next chunk if None). ``read_ahead`` is how many bytes the caller may consume in total from here, e.g. what
gunicorn/http/unreader.py:36
↓ 5 callersMethodread_body
Read body chunk asynchronously. Args: size: Maximum bytes to read Returns: bytes: Body data, empty bytes whe
gunicorn/asgi/uwsgi.py:133
↓ 5 callersMethodread_message_async
Read a complete binary message from async stream. Args: reader: asyncio StreamReader Returns: dict:
gunicorn/dirty/protocol.py:408
↓ 5 callersFunctionread_trusted_pid
Return the PID stored in ``path`` if the file can be trusted, else None. Trusted means: a regular file (not a symlink) owned by this user, not
gunicorn/dirty/pidfile.py:64
↓ 5 callersMethodreexec
\ Relaunch the master and workers.
gunicorn/arbiter.py:496
↓ 5 callersMethodremaining
Bytes fed after the completed message (b'' if none or not complete). Matches the accessor H1CProtocol gained in 0.6.8, so a caller does not
gunicorn/asgi/parser.py:254
↓ 5 callersFunctionresponder
(status)
tests/test_asgi_http2_response.py:65
↓ 5 callersMethodrun
Run the WebSocket ASGI application.
gunicorn/asgi/websocket.py:163
↓ 5 callersMethodrun
(self)
examples/when_ready.conf.py:29
↓ 5 callersFunctionrun_app
Drive _handle_http2_request and report what reached the wire.
tests/test_asgi_http2_response.py:49
↓ 5 callersMethodrun_benchmark
Run a benchmark with specified parameters. Each concurrent worker maintains a persistent connection to the arbiter and makes
benchmarks/dirty_benchmark.py:284
↓ 5 callersMethodsend_data
Send data on a stream. Args: stream_id: The stream ID data: Body data bytes end_stream: Whether this ends
gunicorn/http2/connection.py:805
↓ 5 callersFunctionsend_response
Send a simple HTTP response.
examples/http2_features/http2_app.py:242
↓ 5 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/connection.py:868
↓ 5 callersMethodshould_close
(self)
gunicorn/http/wsgi.py:327
↓ 5 callersMethodsignal_disconnect
Mark the peer as gone and wake anything waiting on it.
gunicorn/http2/stream.py:260
↓ 5 callersFunctionsplit_request_uri
(uri)
gunicorn/util.py:671
↓ 5 callersMethodstop
(self)
tests/test_asgi_connection_close.py:51
↓ 5 callersMethodstop
Stop the dirty arbiter.
benchmarks/dirty_benchmark.py:258
↓ 5 callersMethodto_dict
Serialize error for protocol transmission.
gunicorn/dirty/errors.py:25
↓ 5 callersMethodvalidate
Check settings against each other once everything is loaded. Individual values are checked by their own validator as they are set; th
gunicorn/config.py:86
↓ 5 callersFunctionvalidate_string
(val)
gunicorn/config.py:466
↓ 5 callersFunctionwait_for_socket
Wait until Unix socket exists.
tests/test_control_socket_integration.py:60
↓ 5 callersMethodwarmup
Warm up the pool with a few requests.
benchmarks/dirty_benchmark.py:278
↓ 5 callersMethodwrite_file
(self, respiter)
gunicorn/http/wsgi.py:563
↓ 5 callersFunctionwrite_pidfile
Write ``pid`` to ``path``, created by this user with mode 0600. A stale file this user owns is replaced. A file owned by someone else, or a s
gunicorn/dirty/pidfile.py:24
↓ 4 callersMethod__init__
(self, data=b'')
tests/test_http2_async_connection.py:52
↓ 4 callersFunction_asgi
(size_line)
tests/test_chunk_extension.py:55
↓ 4 callersFunction_close
Cancel what the connection left running, then close the loop.
benchmarks/asgi/profile_requests.py:161
↓ 4 callersMethod_close_socket
Close the socket connection.
gunicorn/dirty/client.py:179
↓ 4 callersMethod_create_manager
Create a LifespanManager with specific app.
tests/test_asgi_lifespan.py:272
↓ 4 callersMethod_create_mock_http2_config
Create mock config for HTTP/2.
tests/test_early_hints.py:305
↓ 4 callersMethod_create_mock_http2_request
Create a mock HTTP/2 request.
tests/test_asgi_http_scope.py:496
↓ 4 callersMethod_create_mock_request
Create a mock HTTP request.
tests/test_asgi_protocol_compat.py:871
↓ 4 callersMethod_create_mock_request
Create a mock HTTP request.
tests/test_asgi_http_scope.py:582
↓ 4 callersMethod_create_mock_request
Create a mock HTTP request with headers.
tests/test_asgi_header_security.py:172
↓ 4 callersMethod_create_mock_socket
Create mock socket for HTTP/2.
tests/test_early_hints.py:310
↓ 4 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_http_scope.py:485
↓ 4 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_http_scope.py:571
↓ 4 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_streaming.py:209
↓ 4 callersMethod_create_protocol
Create a WebSocketProtocol instance for testing.
tests/test_asgi_websocket_protocol.py:175
↓ 4 callersMethod_create_protocol
Create a WebSocketProtocol instance.
tests/test_asgi_websocket_enhanced.py:269
↓ 4 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_header_security.py:159
↓ 4 callersFunction_create_websocket_protocol
()
tests/test_asgi_response_headers.py:131
↓ 4 callersMethod_drain
Wait for the transport to catch up, for at most cfg.timeout. Holding the write lock here would let one peer that stops reading freeze
gunicorn/http2/async_connection.py:926
↓ 4 callersMethod_forbids
(self, status)
tests/test_asgi_streaming.py:437
↓ 4 callersMethod_get
(self, client, stream_id, path="/")
tests/test_http2_connection.py:1557
↓ 4 callersMethod_get
(self, client, stream_id)
tests/test_http2_connection.py:2054
↓ 4 callersMethod_get_worker_connection
Get or create connection to a worker.
gunicorn/dirty/arbiter.py:632
↓ 4 callersMethod_h2c_undecided_timeout
Nothing conclusive arrived in time. With prior knowledge alone the peer is expected to speak HTTP/2, so stalling mid-preface is refus
gunicorn/asgi/protocol.py:1055
↓ 4 callersMethod_increment_counter
Increment global request counter.
examples/dirty_example/dirty_app.py:256
↓ 4 callersFunction_make
(server, access_log)
benchmarks/asgi/profile_requests.py:176
↓ 4 callersMethod_make_stream
(self, headers, stream_id=1)
tests/test_http2_request.py:463
↓ 4 callersFunction_ok
(body=b"ok")
tests/test_asgi_request_base.py:23
↓ 4 callersMethod_on_message_complete
Callback: request is fully received.
gunicorn/asgi/protocol.py:959
↓ 4 callersMethod_open_get
(self, timeout)
tests/test_http2_async_connection.py:1475
↓ 4 callersMethod_open_post
(self)
tests/test_http2_async_connection.py:1077
↓ 4 callersMethod_open_post
(self, max_streams=100)
tests/test_http2_connection.py:2036
↓ 4 callersFunction_parser
(kind)
tests/test_asgi_request_build.py:33
↓ 4 callersFunction_pre_request_for
(loglevel, log_class=Logger, **settings)
tests/test_asgi_config_cache.py:127
↓ 4 callersMethod_receive
ASGI receive callable for lifespan.
gunicorn/asgi/lifespan.py:165
↓ 4 callersFunction_request
Send one request and return the raw response bytes.
tests/test_asgi_connection_close.py:61
↓ 4 callersMethod_run
(self, app, path="/t")
tests/test_http2_h2c.py:1888
↓ 4 callersMethod_run
(self, parser, body=b"", chunked=False, raising=False)
tests/test_http2_h2c.py:2153
↓ 4 callersMethod_safe_write
Write data to transport, handling connection errors gracefully. Catches exceptions that occur when the client has disconnected: - OSE
gunicorn/asgi/protocol.py:1302
↓ 4 callersFunction_scope_for
(http_parser, peer, headers, **settings)
tests/test_asgi_scope.py:22
↓ 4 callersMethod_send_informational
Send an informational response (1xx) such as 103 Early Hints. Args: status: HTTP status code (100-199) headers: List
gunicorn/asgi/protocol.py:2096
↓ 4 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:2124
↓ 4 callersFunction_serve
(proto, transport, request, count)
benchmarks/asgi/profile_requests.py:153
↓ 4 callersMethod_served_get
(self, stream_id=1)
tests/test_http2_connection.py:1888
↓ 4 callersMethod_write_locked
Hand h2's pending bytes to the transport. Never waits. Returns: bool: True if there was anything to write
gunicorn/http2/async_connection.py:910
↓ 4 callersMethod_write_pending_nowait
(self)
gunicorn/http2/async_connection.py:413
↓ 4 callersFunction_wsgi
(size_line)
tests/test_chunk_extension.py:48
↓ 4 callersFunction_wsgi
(raw, parser="python")
tests/test_transfer_encoding.py:48
↓ 4 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/connection.py:944
↓ 4 callersFunctionbytes_to_str
(b)
gunicorn/util.py:696
↓ 4 callersMethodcheck
(self, cfg, sender, sizer, matcher)
tests/treq.py:282
↓ 4 callersFunctioncheck_server_available
Wait for server to become available.
examples/http2_gevent/test_http2_gevent.py:30
↓ 4 callersMethodclose
(self)
tests/test_dirty_integration.py:48
↓ 4 callersMethodclose
(self)
tests/test_http2_connection.py:66
↓ 4 callersFunctionclose_dirty_client
Close the thread-local client (call on worker exit).
gunicorn/dirty/client.py:733
↓ 4 callersMethodclose_on_exec
(self)
gunicorn/glogging.py:422
↓ 4 callersMethodconnect
(self)
tests/docker/asgi_framework_compat/frameworks/django_app/consumers.py:41
↓ 4 callersMethodconnect_async
Establish async connection to arbiter. Raises: DirtyConnectionError: If connection fails
gunicorn/dirty/client.py:197
↓ 4 callersMethodconnection_made
(self, transport)
tests/test_asgi_worker.py:485
↓ 4 callersMethodcreate_worker
Create a worker for testing.
tests/test_gthread.py:720
↓ 4 callersMethodcreate_worker
Create a worker for testing.
tests/test_gthread.py:831
↓ 4 callersMethodcreate_worker
Create a worker for testing.
tests/test_gthread.py:1231
↓ 4 callersMethoddelete
Delete a key from a table. Args: table: Table name key: Key to delete Returns: True if
gunicorn/dirty/stash.py:221
↓ 4 callersMethoddrain
Wait until transport is writable.
gunicorn/asgi/protocol.py:247
↓ 4 callersMethodencode_response
Encode a success response message. Args: request_id: Request identifier this responds to result: Result valu
gunicorn/dirty/protocol.py:207
↓ 4 callersMethodexec
Execute a command in the container.
tests/docker/dirty_arbiter/test_parent_death.py:112
↓ 4 callersFunctionfunc
(a, b)
tests/test_config.py:210
↓ 4 callersFunctionget_dirty_worker_count
Get the current number of dirty workers.
tests/docker/dirty_ttin_ttou/test_ttin_ttou_docker.py:80
↓ 4 callersMethodget_files
(self)
gunicorn/reloader.py:46
↓ 4 callersMethodhandle_quit
SIGQUIT handling
gunicorn/arbiter.py:327
↓ 4 callersMethodhandle_request
(self, listener, req, client, addr)
gunicorn/workers/sync.py:168
↓ 4 callersMethodinitiate_upgrade
Switch a connection to HTTP/2 after an Upgrade: h2c request. The upgraded request becomes stream 1 (RFC 7540 section 3.2). h2 opens i
gunicorn/http2/connection.py:160
↓ 4 callersMethodis_parent_alive
(self)
gunicorn/workers/sync.py:51
↓ 4 callersMethodkinds
(self)
tests/test_http2_live.py:146
← previousnext →401–500 of 5,599, ranked by callers