MCPcopy Create free account

hub / github.com/benoitc/gunicorn / functions

Functions5,599 in github.com/benoitc/gunicorn

↓ 2 callersMethodexec
Execute a command in the container.
tests/docker/per_app_allocation/test_per_app_e2e.py:117
↓ 2 callersMethodfileno
Return the readable file descriptor for selector registration.
gunicorn/workers/gthread.py:208
↓ 2 callersFunctionformat_response
Format response data based on command. Args: command: Original command string data: Response data dictionary Returns:
gunicorn/ctl/cli.py:234
↓ 2 callersMethodforwarded_allow_networks
Return cached network objects for forwarded_allow_ips (internal use).
gunicorn/config.py:205
↓ 2 callersFunctiongenerate
()
tests/docker/asgi_compliance/apps/framework_apps.py:136
↓ 2 callersFunctiongenerate
()
tests/docker/asgi_framework_compat/frameworks/litestar_app/app.py:124
↓ 2 callersFunctiongenerate
()
tests/docker/asgi_framework_compat/frameworks/starlette_app/app.py:156
↓ 2 callersFunctiongenerate
()
tests/docker/asgi_framework_compat/frameworks/fastapi_app/app.py:156
↓ 2 callersFunctiongenerate
()
tests/docker/asgi_framework_compat/frameworks/django_app/views.py:83
↓ 2 callersFunctiongenerate
()
tests/docker/asgi_framework_compat/frameworks/quart_app/app.py:113
↓ 2 callersFunctionget_default_config_file
()
gunicorn/config.py:655
↓ 2 callersMethodget_dirs
(self)
gunicorn/reloader.py:116
↓ 2 callersMethodget_logs
Get container logs.
tests/docker/per_app_allocation/test_per_app_e2e.py:128
↓ 2 callersMethodget_thread_pool
Override this method to customize how the thread pool is created
gunicorn/workers/gthread.py:282
↓ 2 callersMethodgetsize
(self, size)
gunicorn/http/body.py:263
↓ 2 callersMethodhandle_dirty_arbiter_exit
\ Report the dirty arbiter exit status and forget the process. Called from both reaping paths: the targeted waitpid below, and
gunicorn/arbiter.py:951
↓ 2 callersMethodhandle_error
(self, req, client, addr, exc)
tests/test_http2_h2c.py:385
↓ 2 callersMethodhandle_h2c_upgrade
Switch this connection to HTTP/2 and serve the upgraded request. The client may already have sent HTTP/2 frames behind the upgrade re
gunicorn/workers/gthread.py:593
↓ 2 callersMethodhandle_http2
Handle an HTTP/2 connection. Runs in a worker thread. HTTP/2 connections are persistent and multiplex multiple streams. We handle all
gunicorn/workers/gthread.py:642
↓ 2 callersMethodhandle_http2
Handle an HTTP/2 connection. Processes multiplexed HTTP/2 streams until the connection closes. ``preface`` carries connection prefac
gunicorn/workers/base_async.py:159
↓ 2 callersFunctionhas_logging_config
(config_file)
gunicorn/app/pasterapp.py:26
↓ 2 callersMethodheartbeat
(self)
gunicorn/workers/gtornado.py:53
↓ 2 callersMethodhelp
Return list of available commands. Returns: Dictionary with commands and descriptions
gunicorn/ctl/handlers.py:561
↓ 2 callersMethodindex
(self)
examples/frameworks/cherryapp.py:10
↓ 2 callersMethodinit
Initialize the application. Called once when the dirty worker starts, after the app instance is created. Use this for expens
gunicorn/dirty/app.py:98
↓ 2 callersMethodinit
Called once when dirty worker starts.
examples/dirty_example/dirty_app.py:37
↓ 2 callersMethodinit_signals
Set up signal handlers.
gunicorn/dirty/arbiter.py:269
↓ 2 callersMethodinit_signals
Set up signal handlers.
gunicorn/dirty/worker.py:178
↓ 2 callersMethodis_already_handled
(self, respiter)
gunicorn/workers/base_async.py:34
↓ 2 callersFunctionis_compose_available
Check if docker compose is available.
tests/docker/uwsgi/conftest.py:35
↓ 2 callersFunctionis_docker_available
Check if Docker is available.
tests/docker/uwsgi/conftest.py:22
↓ 2 callersMethodkill_process
Send a signal to a process in the container.
tests/docker/per_app_allocation/test_per_app_e2e.py:169
↓ 2 callersFunctionlisten
()
tests/support/http2_live_app.py:75
↓ 2 callersMethodload_config_from_file
(self, filename)
gunicorn/app/base.py:152
↓ 2 callersMethodload_default_config
(self)
gunicorn/app/base.py:42
↓ 2 callersMethodload_wsgi
(self)
gunicorn/workers/base.py:148
↓ 2 callersMethodlog
Log a given statistic if metric, value and type are present
gunicorn/instrument/statsd.py:71
↓ 2 callersFunctionloggers
get list of all loggers
gunicorn/glogging.py:88
↓ 2 callersFunctionmake_uwsgi_packet_with_body
Create uWSGI packet with body for testing.
tests/test_uwsgi.py:44
↓ 2 callersMethodmurder_pending
Close expired pending connections (waiting for initial data).
gunicorn/workers/gthread.py:370
↓ 2 callersMethodmurder_workers
Kill workers that have timed out.
gunicorn/dirty/arbiter.py:1054
↓ 2 callersMethodnotify
(self)
gunicorn/workers/workertmp.py:42
↓ 2 callersMethodnworkers_changed
(server, new_value, old_value)
gunicorn/config.py:2136
↓ 2 callersMethodon_dirty_starting
(arbiter)
gunicorn/config.py:3235
↓ 2 callersMethodparse_chunk_size
(self, unreader, data=None)
gunicorn/http/body.py:124
↓ 2 callersMethodparse_headers
(self, data, from_trailer=False)
gunicorn/http/message.py:334
↓ 2 callersMethodparse_trailers
(self, unreader, data)
gunicorn/http/body.py:68
↓ 2 callersMethodpause_reading
(self)
gunicorn/asgi/protocol.py:251
↓ 2 callersFunctionpeer_trusted_for_h2c
Whether this peer may negotiate cleartext HTTP/2. Reuses the ``forwarded_allow_ips`` trust list: h2c is only ever expected from the TLS-termi
gunicorn/http2/negotiation.py:41
↓ 2 callersMethodpump
Read once from the socket while a request body is being consumed. Frames for the stream being read land in its buffer; any request th
gunicorn/http2/connection.py:245
↓ 2 callersMethodread
(self, size)
gunicorn/http/body.py:181
↓ 2 callersMethodread
(self, size)
gunicorn/http/body.py:205
↓ 2 callersMethodread_into
Append one socket read to a bytearray, without copying it.
gunicorn/http/body.py:168
↓ 2 callersMethodreadexactly
(self, n)
benchmarks/dirty_streaming.py:94
↓ 2 callersMethodreap_dirty_arbiter
\ Reap the dirty arbiter process if it has exited.
gunicorn/arbiter.py:973
↓ 2 callersMethodreload
Reload workers (SIGHUP handling).
gunicorn/dirty/arbiter.py:1098
↓ 2 callersMethodreload
Trigger graceful reload (equivalent to SIGHUP). Returns: Dictionary with status
gunicorn/ctl/handlers.py:419
↓ 2 callersMethodreopen
Reopen log files (equivalent to SIGUSR1). Returns: Dictionary with status
gunicorn/ctl/handlers.py:430
↓ 2 callersMethodresize
Resize an image. Equivalent to Celery: @app.task def resize_image(image_path, width, height):
examples/celery_alternative/tasks.py:193
↓ 2 callersMethodresume_reading
(self)
gunicorn/asgi/protocol.py:256
↓ 2 callersFunctionrun
\ The ``gunicorn`` command line runner for launching Gunicorn with generic WSGI applications.
gunicorn/app/wsgiapp.py:60
↓ 2 callersMethodrun
\ This is the mainloop of a worker process. You should override this method in a subclass to provide the intended behaviour fo
gunicorn/workers/base.py:80
↓ 2 callersFunctionsecure_scheme_names
The secure_scheme_headers names as lower-case bytes.
gunicorn/asgi/protocol.py:184
↓ 2 callersMethodsend
(message)
gunicorn/asgi/protocol.py:1696
↓ 2 callersFunctionsend_error
Send an error response.
tests/docker/asgi_compliance/apps/http_app.py:586
↓ 2 callersFunctionserialize_scope
Convert ASGI scope to JSON-serializable dict.
tests/docker/asgi_framework_compat/frameworks/litestar_app/app.py:40
↓ 2 callersFunctionserialize_scope
Convert ASGI scope to JSON-serializable dict.
tests/docker/asgi_framework_compat/frameworks/starlette_app/app.py:68
↓ 2 callersFunctionserialize_scope
Convert ASGI scope to JSON-serializable dict.
tests/docker/asgi_framework_compat/frameworks/fastapi_app/app.py:63
↓ 2 callersFunctionserialize_scope
Convert ASGI scope to JSON-serializable dict.
tests/docker/asgi_framework_compat/frameworks/blacksheep_app/app.py:42
↓ 2 callersFunctionserialize_scope
Convert ASGI scope to JSON-serializable dict.
tests/docker/asgi_framework_compat/frameworks/quart_app/app.py:40
↓ 2 callersFunctionserver_connection_class
Return the H2Connection subclass gunicorn uses on the server side. h2 answers a peer GOAWAY by closing its own connection state, which would
gunicorn/http2/h2conn.py:13
↓ 2 callersMethodset_body_reader
(self)
gunicorn/http/message.py:409
↓ 2 callersMethodset_eof
(self)
tests/test_http2_async_connection.py:65
↓ 2 callersMethodset_write_buffer_limits
(self, high=None, low=None)
tests/test_http2_h2c.py:493
↓ 2 callersMethodsetup
(self, app)
gunicorn/arbiter.py:109
↓ 2 callersMethodsetup
(self)
tests/docker/dirty_ttin_ttou/app.py:30
↓ 2 callersMethodshould_close
Check if connection should be closed after this request.
gunicorn/asgi/parser.py:1135
↓ 2 callersMethodshould_close
Check if connection should close after this request. HTTP/2 connections are persistent by design, but we may still need to close if e
gunicorn/http2/request.py:314
↓ 2 callersMethodshow_config
Return current effective configuration. Returns: Dictionary of configuration values
gunicorn/ctl/handlers.py:129
↓ 2 callersMethodshow_dirty
Return dirty workers and apps information. Returns: Dictionary with: - enabled: Whether dirty arbiter is run
gunicorn/ctl/handlers.py:69
↓ 2 callersMethodshow_stats
Return server statistics. Returns: Dictionary with: - uptime: Seconds since arbiter started - pi
gunicorn/ctl/handlers.py:164
↓ 2 callersMethodsignal_master
(self, service, sig)
tests/docker/stress/conftest.py:153
↓ 2 callersMethodstop
(self)
tests/test_asgi_keepalive_pipeline.py:68
↓ 2 callersMethodstop
(self)
tests/test_asgi_uwsgi_protocol.py:84
↓ 2 callersMethodstream_lines
Stream response lines from URL.
tests/docker/asgi_compliance/conftest.py:344
↓ 2 callersFunctionsync_gen
()
benchmarks/dirty_streaming.py:214
↓ 2 callersMethodszread
(self, func, sizes)
tests/treq.py:160
↓ 2 callersMethodtake_buffered
Return read-ahead already held, without touching the source. read() blocks on the source when the buffer is empty, which is wrong for
gunicorn/http/unreader.py:24
↓ 2 callersMethodtimer
(self, name, value)
gunicorn/instrument/statsd.py:125
↓ 2 callersMethodtracebacks
(self)
tests/test_asgi_keepalive_pipeline.py:65
↓ 2 callersFunctionvalidate_pos_int
(val)
gunicorn/config.py:421
↓ 2 callersMethodwait_closed
(self)
tests/test_dirty_arbiter.py:60
↓ 2 callersMethodwait_closed
(self)
tests/dirty/test_worker_streaming.py:57
↓ 2 callersMethodwatchdog
(self)
gunicorn/workers/gtornado.py:45
↓ 2 callersMethodworker_abort
(worker)
gunicorn/config.py:2029
↓ 2 callersMethodworker_exit
(server, worker)
gunicorn/config.py:2119
↓ 2 callersMethodwrite
(self, data)
tests/test_asgi_response_wire.py:283
↓ 2 callersMethodwrite
(self, data)
tests/test_dirty_arbiter.py:34
↓ 2 callersMethodwrite
(self, data)
benchmarks/asgi/profile_requests.py:72
↓ 1 callersMethod__init__
(self, extra_files=None, interval=1, callback=None)
gunicorn/reloader.py:30
← previousnext →801–900 of 5,599, ranked by callers