Skip to content

Use Protocol Version instead of server_agent for Bolt V4 connections #718

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

Merged

Conversation

gjmwoods
Copy link
Contributor

Since Server v4.0 the server agent received in response to the Hello message is unreliable. Instead, since the server and Bolt protocol versions are aligned, we use the protocol version instead for all connections to Server 4.0 and higher (#708)

Note: A future refactoring is required when support for 3.5 is dropped. The name serverVersion filed of the netty channel no longer reflects its true purpose since it essentially becomes protocolVersion. We keep the current naming for now since the split in meaning between 3.5 and 4.X+

(Adapted from #708)

…message is unreliable. Instead, since the server and Bolt protocol versions are aligned, we use the protocol version instead for all connections to Server 4.0 and higher (neo4j#708)

Note: A future refactoring is required when support for 3.5 is dropped. The name serverVersion filed of the netty channel no longer reflects its true purpose since it essentially becomes protocolVersion. We keep the current naming for now since the split in meaning between 3.5 and 4.X+
@gjmwoods gjmwoods merged commit 31d3495 into neo4j:4.1 May 28, 2020
@gjmwoods gjmwoods deleted the 4.1-remove-reliance-on-server-agent-for-version branch May 28, 2020 07:06
gjmwoods added a commit to gjmwoods/neo4j-java-driver that referenced this pull request Jul 16, 2020
…e Hello message is unreliable. Instead, since the server and Bolt protocol versions are aligned, we use the protocol version instead for all connections to Server 4.0 and higher (neo4j#708) (neo4j#718)"

This reverts commit 31d3495.
gjmwoods added a commit to gjmwoods/neo4j-java-driver that referenced this pull request Jul 16, 2020
…e Hello message is unreliable. Instead, since the server and Bolt protocol versions are aligned, we use the protocol version instead for all connections to Server 4.0 and higher (neo4j#708) (neo4j#718)"

This reverts commit 31d3495.
gjmwoods added a commit that referenced this pull request Jul 17, 2020
…e Hello message is unreliable. Instead, since the server and Bolt protocol versions are aligned, we use the protocol version instead for all connections to Server 4.0 and higher (#708) (#718)" (#746)

This reverts commit 31d3495.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant