Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Websocket use TcpHandler.DefaultMaxIncomingQuota which is too low. #14

Open
c19 opened this issue Jan 9, 2017 · 0 comments
Open

Websocket use TcpHandler.DefaultMaxIncomingQuota which is too low. #14

c19 opened this issue Jan 9, 2017 · 0 comments

Comments

@c19
Copy link

c19 commented Jan 9, 2017

TcpHandler.DefaultMaxIncomingQuota and DefaultMaxOutgoingQuota is really low.
what is the purpose of this limitation ?
doesn't seems like a protocol requirement.
and WebSocketsProcessor_RFC6455_13.cs use TcpHandler.DefaultMaxOutgoingQuota for it's bufferstream.
and cause it to throw a exception in BufferStream.Grow .
should I set a higher DefaultMaxOutgoingQuota ? or remove the limit completely, or set a different default limit for websocket.

Buffer maximum length exceeded (64555 vs 16384)
Exception = System.InvalidOperationException: Buffer maximum length exceeded (64555 vs 16384)
   在 StackExchange.NetGain.BufferStream.Grow(Int32 newLength) 位置 E:\repos\project.server\deps\StackExchange.NetGain\BufferStream.cs:行号 74
   在 StackExchange.NetGain.BufferStream.Write(Byte[] buffer, Int32 bufferOffset, Int32 count) 位置 E:\repos\project.server\deps\StackExchange.NetGain\BufferStream.cs:行号 109
   在 StackExchange.NetGain.WebSockets.WebSocketsProcessor_RFC6455_13.Send(NetContext context, Connection connection, Object message) 位置 E:\repos\project.server\deps\StackExchange.NetGain\WebSockets\WebSocketsProcessor_RFC6455_13.cs:行号 360
   在 StackExchange.NetGain.Connection.Send(NetContext context, Object message) 位置 E:\repos\project.server\deps\StackExchange.NetGain\Connection.cs:行号 265
   在 StackExchange.NetGain.WebSockets.WebSocketsMessageProcessor.Send(WebSocketConnection connection, Byte[] message)  位置 E:\repos\project.server\deps\StackExchange.NetGain\WebSockets\WebSocketsMessageProcessor.cs:行号 156
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant