spare enough space for UDP packet

This commit is contained in:
Syrone Wong
2017-04-08 18:59:39 +08:00
parent 54335d4889
commit 877644609b
3 changed files with 4 additions and 4 deletions
@@ -11,7 +11,7 @@ namespace Shadowsocks.Encryption.Stream
: EncryptorBase
{
// for UDP only
protected static byte[] _udpTmpBuf = new byte[MAX_INPUT_SIZE];
protected static byte[] _udpTmpBuf = new byte[65536];
// every connection should create its own buffer
private CircularBuffer<byte> _encCircularBuffer = new CircularBuffer<byte>(TCPHandler.BufferSize * 2, false);