Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set maxPayload on ws server for each p2p ws server #3973

Closed
air1one opened this issue Aug 21, 2020 · 0 comments
Closed

Set maxPayload on ws server for each p2p ws server #3973

air1one opened this issue Aug 21, 2020 · 0 comments
Assignees

Comments

@air1one
Copy link
Contributor

air1one commented Aug 21, 2020

The maxPayload option on ws server allows to specify a max payload size on the ws server listener : https://github.com/websockets/ws/blob/da42ea17451f11eed54adb54d3beeedbb1c2aa70/doc/ws.md

Currently, our hapi-nes does not allow to set this option, it would be when instantiating the ws server see packages/core-p2p/src/hapi-nes/listener.ts.

So two things :

  • allow to set the maxPayload option on the ws server (in hapi-nes)
  • when registering hapi-nes plugin on every p2p server (peer, blocks, and transactions), set the following values : 100KB for peer server, 20MB for blocks server, 10MB for transactions server
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

No branches or pull requests

2 participants