nxt_python_asgi_http.c (1917:a7e80c97def4) nxt_python_asgi_http.c (1980:43553aa72111)
1
2/*
3 * Copyright (C) NGINX, Inc.
4 */
5
6
7#include <python/nxt_python.h>
8

--- 622 unchanged lines hidden (view full) ---

631nxt_py_asgi_http_close_handler(nxt_unit_request_info_t *req)
632{
633 nxt_py_asgi_http_t *http;
634
635 http = req->data;
636
637 nxt_unit_req_debug(req, "asgi_http_close_handler");
638
1
2/*
3 * Copyright (C) NGINX, Inc.
4 */
5
6
7#include <python/nxt_python.h>
8

--- 622 unchanged lines hidden (view full) ---

631nxt_py_asgi_http_close_handler(nxt_unit_request_info_t *req)
632{
633 nxt_py_asgi_http_t *http;
634
635 http = req->data;
636
637 nxt_unit_req_debug(req, "asgi_http_close_handler");
638
639 http->closed = 1;
639 if (nxt_fast_path(http != NULL)) {
640 http->closed = 1;
640
641
641 nxt_py_asgi_http_emit_disconnect(http);
642 nxt_py_asgi_http_emit_disconnect(http);
643 }
642}
643
644
645static PyObject *
646nxt_py_asgi_http_done(PyObject *self, PyObject *future)
647{
648 int rc;
649 PyObject *res;

--- 31 unchanged lines hidden ---
644}
645
646
647static PyObject *
648nxt_py_asgi_http_done(PyObject *self, PyObject *future)
649{
650 int rc;
651 PyObject *res;

--- 31 unchanged lines hidden ---