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

neptune-export max-content-length error on default value #84

Closed
joelsimonoff opened this issue Oct 9, 2020 · 1 comment
Closed

neptune-export max-content-length error on default value #84

joelsimonoff opened this issue Oct 9, 2020 · 1 comment

Comments

@joelsimonoff
Copy link

When running create-pg-config I encountered the same Max frame length error as described in #68.

java.util.concurrent.CompletionException: io.netty.handler.codec.http.websocketx.CorruptedWebSocketFrameException: Max frame length of 65536 has been exceeded.

It was fixed by setting --max-content-length 2147483647 as mentioned in #68. Does it make sense to change the default value of --max-content-length to avoid this issue? Additionally, what is the best practice for setting this value? When should a lower value such as 65536 be used?

@iansrobinson
Copy link
Contributor

Hi @joelsimonoff - thanks for raising this. The default value of 65536 reflects the default value in the underlying Java Gremlin driver. The purpose of this setting is to protect client and server from rogue queries that inadvertently or deliberately attempt to assemble infinitely large messages. While it's perfectly acceptable for the export process to make use of very large messages, I would prefer users of the tool to explicitly acknowledge that their export has an impact on the resources available on the server through setting --max-content-length to a larger value.

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

3 participants