mirror of
				https://github.com/openresty/openresty.git
				synced 2024-10-13 00:29:41 +00:00 
			
		
		
		
	upgraded the NGINX core to 1.17.8.
This commit is contained in:
		
							
								
								
									
										53
									
								
								patches/nginx-1.17.8-stream_balancer_export.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										53
									
								
								patches/nginx-1.17.8-stream_balancer_export.patch
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,53 @@
 | 
			
		||||
diff --git a/src/stream/ngx_stream_upstream_round_robin.c b/src/stream/ngx_stream_upstream_round_robin.c
 | 
			
		||||
index 526de3a..b531ce1 100644
 | 
			
		||||
--- a/src/stream/ngx_stream_upstream_round_robin.c
 | 
			
		||||
+++ b/src/stream/ngx_stream_upstream_round_robin.c
 | 
			
		||||
@@ -21,10 +21,6 @@ static void ngx_stream_upstream_notify_round_robin_peer(
 | 
			
		||||
 
 | 
			
		||||
 #if (NGX_STREAM_SSL)
 | 
			
		||||
 
 | 
			
		||||
-static ngx_int_t ngx_stream_upstream_set_round_robin_peer_session(
 | 
			
		||||
-    ngx_peer_connection_t *pc, void *data);
 | 
			
		||||
-static void ngx_stream_upstream_save_round_robin_peer_session(
 | 
			
		||||
-    ngx_peer_connection_t *pc, void *data);
 | 
			
		||||
 static ngx_int_t ngx_stream_upstream_empty_set_session(
 | 
			
		||||
     ngx_peer_connection_t *pc, void *data);
 | 
			
		||||
 static void ngx_stream_upstream_empty_save_session(ngx_peer_connection_t *pc,
 | 
			
		||||
@@ -690,7 +686,7 @@ ngx_stream_upstream_notify_round_robin_peer(ngx_peer_connection_t *pc,
 | 
			
		||||
 
 | 
			
		||||
 #if (NGX_STREAM_SSL)
 | 
			
		||||
 
 | 
			
		||||
-static ngx_int_t
 | 
			
		||||
+ngx_int_t
 | 
			
		||||
 ngx_stream_upstream_set_round_robin_peer_session(ngx_peer_connection_t *pc,
 | 
			
		||||
     void *data)
 | 
			
		||||
 {
 | 
			
		||||
@@ -756,7 +752,7 @@ ngx_stream_upstream_set_round_robin_peer_session(ngx_peer_connection_t *pc,
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
 
 | 
			
		||||
-static void
 | 
			
		||||
+void
 | 
			
		||||
 ngx_stream_upstream_save_round_robin_peer_session(ngx_peer_connection_t *pc,
 | 
			
		||||
     void *data)
 | 
			
		||||
 {
 | 
			
		||||
diff --git a/src/stream/ngx_stream_upstream_round_robin.h b/src/stream/ngx_stream_upstream_round_robin.h
 | 
			
		||||
index 35d9fce..75f3e31 100644
 | 
			
		||||
--- a/src/stream/ngx_stream_upstream_round_robin.h
 | 
			
		||||
+++ b/src/stream/ngx_stream_upstream_round_robin.h
 | 
			
		||||
@@ -142,5 +142,15 @@ ngx_int_t ngx_stream_upstream_get_round_robin_peer(ngx_peer_connection_t *pc,
 | 
			
		||||
 void ngx_stream_upstream_free_round_robin_peer(ngx_peer_connection_t *pc,
 | 
			
		||||
     void *data, ngx_uint_t state);
 | 
			
		||||
 
 | 
			
		||||
+#if (NGX_STREAM_SSL)
 | 
			
		||||
+ngx_int_t ngx_stream_upstream_set_round_robin_peer_session(
 | 
			
		||||
+    ngx_peer_connection_t *pc, void *data);
 | 
			
		||||
+void ngx_stream_upstream_save_round_robin_peer_session(
 | 
			
		||||
+    ngx_peer_connection_t *pc, void *data);
 | 
			
		||||
+#endif
 | 
			
		||||
+
 | 
			
		||||
+
 | 
			
		||||
+#define HAVE_NGX_STREAM_BALANCER_EXPORT_PATCH 1
 | 
			
		||||
+
 | 
			
		||||
 
 | 
			
		||||
 #endif /* _NGX_STREAM_UPSTREAM_ROUND_ROBIN_H_INCLUDED_ */
 | 
			
		||||
		Reference in New Issue
	
	Block a user