2016-11-26 21:34:59 +01:00
|
|
|
From 344cc3d7f77465bc3ec499fd950f5afc6024aba7 Mon Sep 17 00:00:00 2001
|
2016-05-28 18:34:39 +02:00
|
|
|
From: Iceee <andrew@optic.tv>
|
|
|
|
Date: Mon, 6 Jul 2015 18:59:29 -0500
|
|
|
|
Subject: [PATCH] Don't allow channel buffers to grow beyond a reasonable limit
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
|
2016-11-26 21:34:59 +01:00
|
|
|
index a3c8caf..64a0dc5 100644
|
2016-05-28 18:34:39 +02:00
|
|
|
--- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
|
|
|
|
+++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
|
2016-11-26 21:34:59 +01:00
|
|
|
@@ -314,6 +314,8 @@ public class BungeeCord extends ProxyServer
|
2016-05-28 18:34:39 +02:00
|
|
|
new ServerBootstrap()
|
|
|
|
.channel( PipelineUtils.getServerChannel() )
|
|
|
|
.option( ChannelOption.SO_REUSEADDR, true ) // TODO: Move this elsewhere!
|
|
|
|
+ .childOption( ChannelOption.WRITE_BUFFER_HIGH_WATER_MARK, 1024 * 1024 * 10 )
|
|
|
|
+ .childOption( ChannelOption.WRITE_BUFFER_LOW_WATER_MARK, 1024 * 1024 * 1 )
|
|
|
|
.childAttr( PipelineUtils.LISTENER, info )
|
|
|
|
.childHandler( PipelineUtils.SERVER_CHILD )
|
|
|
|
.group( eventLoops )
|
|
|
|
--
|
2016-11-26 21:34:59 +01:00
|
|
|
2.10.0
|
2016-05-28 18:34:39 +02:00
|
|
|
|