Skip to content

Set websocket max_size to 2**24.#5

Open
doubleukay wants to merge 1 commit into
bloXroute-Labs:masterfrom
doubleukay:set-websockets-max-size
Open

Set websocket max_size to 2**24.#5
doubleukay wants to merge 1 commit into
bloXroute-Labs:masterfrom
doubleukay:set-websockets-max-size

Conversation

@doubleukay
Copy link
Copy Markdown

In bxcommon commit a3f68b623afc20cf5bbe773bc09eae32fafe5261, max_size
was set to 2**24. Without it, the websocket connection may break when
streaming blocks containing many transactions.

As WsProvider and CloudWssProvider override AbstractWsProvider's
connect_websocket() and aren't inheriting the max_size setting, set it
manually for them.

In bxcommon commit a3f68b623afc20cf5bbe773bc09eae32fafe5261, max_size
was set to 2**24. Without it, the websocket connection may break when
streaming blocks containing many transactions.

As WsProvider and CloudWssProvider override AbstractWsProvider's
connect_websocket() and aren't inheriting the max_size setting, set it
manually for them.
@doubleukay
Copy link
Copy Markdown
Author

This fixes the problem "Websocket disconnected due to transport layer exception: over size limit (1299123 > 1048576 bytes)"

Copy link
Copy Markdown

@sasha00123 sasha00123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I totally agree. Wish it could be merged. @shanevc @Uri-Margalit-bloXroute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants