mirror of
https://github.com/PaperMC/Waterfall.git
synced 2024-11-15 23:06:01 +01:00
25ecd402f3
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing BungeeCord Changes: 1a807731 #3567: Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.6.2 to 3.6.3 772ad995 #3566: Bump actions/setup-java from 3 to 4 2431c40a #3562: Bump io.netty:netty-bom from 4.1.100.Final to 4.1.101.Final 8144ae8d #3555: Bump com.mysql:mysql-connector-j from 8.1.0 to 8.2.0 0757c39a Attempt upgrade of resolver libraries
24 lines
1.0 KiB
Diff
24 lines
1.0 KiB
Diff
From 4632030b32001c18b65c883cab0de4f3688ed5c1 Mon Sep 17 00:00:00 2001
|
|
From: Tux <write@imaginarycode.com>
|
|
Date: Wed, 13 Apr 2016 15:17:05 -0400
|
|
Subject: [PATCH] Presize the HTTP response buffer
|
|
|
|
16 characters is extremely small, and all responses start around 256 bytes. 640 characters seems to be good (covering skins and capes), based on sampling profile API responses.
|
|
|
|
diff --git a/proxy/src/main/java/net/md_5/bungee/http/HttpHandler.java b/proxy/src/main/java/net/md_5/bungee/http/HttpHandler.java
|
|
index a1e59b47..e2911d5e 100644
|
|
--- a/proxy/src/main/java/net/md_5/bungee/http/HttpHandler.java
|
|
+++ b/proxy/src/main/java/net/md_5/bungee/http/HttpHandler.java
|
|
@@ -16,7 +16,7 @@ public class HttpHandler extends SimpleChannelInboundHandler<HttpObject>
|
|
{
|
|
|
|
private final Callback<String> callback;
|
|
- private final StringBuilder buffer = new StringBuilder();
|
|
+ private final StringBuilder buffer = new StringBuilder(640);
|
|
|
|
@Override
|
|
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception
|
|
--
|
|
2.43.0
|
|
|