gaoran10 commented on code in PR #19514:
URL: https://github.com/apache/pulsar/pull/19514#discussion_r1132499251


##########
pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/ProxyConfiguration.java:
##########
@@ -661,6 +661,29 @@ public class ProxyConfiguration implements 
PulsarConfiguration {
     )
     private int httpOutputBufferSize = 32 * 1024;
 
+    @FieldContext(
+        minValue = 1,
+        category = CATEGORY_HTTP,
+        doc = """
+                The maximum size in bytes of the request header.
+                Larger headers will allow for more and/or larger cookies plus 
larger form content encoded in a URL.
+                However, larger headers consume more memory and can make a 
server more vulnerable to denial of service
+                attacks.
+              """
+    )
+    private int httpMaxRequestHeaderSize = 8 * 1024;
+
+    @FieldContext(
+        minValue = 1,
+        category = CATEGORY_HTTP,
+        doc = """
+                 the size of the buffer used to write requests to Broker.
+                 if "httpMaxRequestHeaderSize" is large than 
"httpClientRequestBufferSize", will set
+                 "httpClientRequestBufferSize" to the value of 
"httpMaxRequestHeaderSize"
+              """
+    )
+    private int httpClientRequestBufferSize = 4096;

Review Comment:
   Does this config is necessary?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to