Home
last modified time | relevance | path

Searched refs:lifespan (Results 1 – 3 of 3) sorted by relevance

/unit/src/python/
H A Dnxt_python_asgi_lifespan.c183 lifespan->disabled = 0; in nxt_py_asgi_lifespan_target_startup()
191 lifespan->state = NULL; in nxt_py_asgi_lifespan_target_startup()
232 ret = lifespan; in nxt_py_asgi_lifespan_target_startup()
296 if (lifespan->startup_sent == 1 || lifespan->disabled) { in nxt_py_asgi_lifespan_target_startup()
297 Py_INCREF(lifespan); in nxt_py_asgi_lifespan_target_startup()
299 ret = lifespan; in nxt_py_asgi_lifespan_target_startup()
315 Py_DECREF(lifespan); in nxt_py_asgi_lifespan_target_startup()
353 if (nxt_slow_path(lifespan == NULL || lifespan->disabled)) { in nxt_py_asgi_lifespan_target_shutdown()
431 if (lifespan->shutdown_called && !lifespan->shutdown_received) { in nxt_py_asgi_lifespan_receive()
560 Py_INCREF(lifespan); in nxt_py_asgi_lifespan_send_()
[all …]
H A Dnxt_python_asgi.c453 PyObject *state, *newstate, *lifespan; in nxt_py_asgi_request_handler() local
499 lifespan = ctx_data->target_lifespans[req->request->app_target]; in nxt_py_asgi_request_handler()
500 state = PyObject_GetAttr(lifespan, nxt_py_state_str); in nxt_py_asgi_request_handler()
/unit/
H A DCHANGES93 *) Feature: ASGI lifespan state support. Thanks to synodriver.