Increased .Net Core's websocket receive buffer

This commit is contained in:
RogueException
2015-12-28 01:50:36 -04:00
parent a93a6dc95a
commit 811d26535c

View File

@@ -14,8 +14,8 @@ namespace Discord.Net.WebSockets
{
internal class BuiltInEngine : IWebSocketEngine
{
private const int ReceiveChunkSize = 4096;
private const int SendChunkSize = 4096;
private const int ReceiveChunkSize = 12 * 1024; //12KB
private const int SendChunkSize = 4 * 1024; //4KB
private const int HR_TIMEOUT = -2147012894;
private readonly DiscordConfig _config;