Welcome! Log In Create A New Profile

Advanced

[PATCH] public upstream connect and finalize request

RekGRpth
June 14, 2022 11:44PM
# HG changeset patch
# User RekGRpth <rekgrpth@gmail.com>
# Date 1655264350 -18000
# Wed Jun 15 08:39:10 2022 +0500
# Node ID 4ae4c147e3b9280e8aca76e99807bbbbf6059de5
# Parent 861f076eab72dab85bd5eaa56da770f8b10aa8ad
public upstream connect and finalize request

diff -r 861f076eab72 -r 4ae4c147e3b9 src/http/ngx_http_upstream.c
--- a/src/http/ngx_http_upstream.c Tue Jun 14 10:39:58 2022 +0400
+++ b/src/http/ngx_http_upstream.c Wed Jun 15 08:39:10 2022 +0500
@@ -35,8 +35,6 @@
static void ngx_http_upstream_wr_check_broken_connection(ngx_http_request_t *r);
static void ngx_http_upstream_check_broken_connection(ngx_http_request_t *r,
ngx_event_t *ev);
-static void ngx_http_upstream_connect(ngx_http_request_t *r,
- ngx_http_upstream_t *u);
static ngx_int_t ngx_http_upstream_reinit(ngx_http_request_t *r,
ngx_http_upstream_t *u);
static void ngx_http_upstream_send_request(ngx_http_request_t *r,
@@ -96,8 +94,6 @@
static void ngx_http_upstream_next(ngx_http_request_t *r,
ngx_http_upstream_t *u, ngx_uint_t ft_type);
static void ngx_http_upstream_cleanup(void *data);
-static void ngx_http_upstream_finalize_request(ngx_http_request_t *r,
- ngx_http_upstream_t *u, ngx_int_t rc);

static ngx_int_t ngx_http_upstream_process_header_line(ngx_http_request_t *r,
ngx_table_elt_t *h, ngx_uint_t offset);
@@ -1504,7 +1500,7 @@
}


-static void
+void
ngx_http_upstream_connect(ngx_http_request_t *r, ngx_http_upstream_t *u)
{
ngx_int_t rc;
@@ -4464,7 +4460,7 @@
}


-static void
+void
ngx_http_upstream_finalize_request(ngx_http_request_t *r,
ngx_http_upstream_t *u, ngx_int_t rc)
{
diff -r 861f076eab72 -r 4ae4c147e3b9 src/http/ngx_http_upstream.h
--- a/src/http/ngx_http_upstream.h Tue Jun 14 10:39:58 2022 +0400
+++ b/src/http/ngx_http_upstream.h Wed Jun 15 08:39:10 2022 +0500
@@ -416,6 +416,10 @@


ngx_int_t ngx_http_upstream_create(ngx_http_request_t *r);
+void ngx_http_upstream_connect(ngx_http_request_t *r,
+ ngx_http_upstream_t *u);
+void ngx_http_upstream_finalize_request(ngx_http_request_t *r,
+ ngx_http_upstream_t *u, ngx_int_t rc);
void ngx_http_upstream_init(ngx_http_request_t *r);
ngx_int_t ngx_http_upstream_non_buffered_filter_init(void *data);
ngx_int_t ngx_http_upstream_non_buffered_filter(void *data, ssize_t bytes);
_______________________________________________
nginx-devel mailing list -- nginx-devel@nginx.org
To unsubscribe send an email to nginx-devel-leave@nginx.org
Subject Author Views Posted

[PATCH] public upstream connect and finalize request

RekGRpth 163 June 14, 2022 11:44PM

Re: [PATCH] public upstream connect and finalize request

Maxim Dounin 23 June 15, 2022 08:34PM

Re: [PATCH] public upstream connect and finalize request

RekGRpth 23 June 16, 2022 11:10PM

Re: [PATCH] public upstream connect and finalize request

Maxim Dounin 21 June 17, 2022 06:02PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 49
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready