Dennis
Dennis

Reputation: 4177

WebSockets -- Max frame size

I just stumbled over this (old) mail:

http://www.ietf.org/mail-archive/web/hybi/current/msg07655.html

"If a frame is sent that a server is unable to buffer for whatever reason, I would expect the server to close the connection with error code 1004".

The RFC says:

1004
  Reserved.  The specific meaning might be defined in the future.

How does Netty handle to large Messages?

Upvotes: 2

Views: 3941

Answers (1)

Veebs
Veebs

Reputation: 2388

This has already been taken into account in Netty 3.4.2.

Basically, you can optionally supply your maxFramePayloadLength to the constructor of WebSocketServerHandshaker.

Please see pull request https://github.com/netty/netty/issues/283.

Upvotes: 2

Related Questions