Skip to content

Byte array support #250

New issue

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

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

Already on GitHub? # to your account

Merged
merged 13 commits into from
Jun 21, 2017
Merged

Byte array support #250

merged 13 commits into from
Jun 21, 2017

Conversation

lutovich
Copy link
Contributor

@lutovich lutovich commented Jun 15, 2017

Allow driver to receive and send byte arrays. They are represented by instances of Int8Array class. Feature only supported by 3.2+ servers and driver performs version check to fail early.

lutovich added 12 commits June 15, 2017 10:55
This commit makes driver handle writing and reading of byte arrays. They
are represented as instances of Int8Array class. Driver will fail-fast
when server does not support byte arrays and will not even attempt to
send the given array.
This commit adds optional logging of open sockets, file handles, etc.
to the gulp script. Logging happens after various NodeJS test task
that can theoretically leave unclosed resources after execution.
Logging is turned off by default. It happened to be very useful when
NodeJS process does not exit after tests because of
open `TLSSocket` objects.
To assert that both `DirectConnectionProvider` and `LoadBalancer`
return promises with initialized connections.
They were failing because of incorrect artificial Neo4j version.
Also fixes JS doc visibility modifier in driver.
Commit moves waiting for connection initialization promise higher
in the stack - from `ConnectionProvider` to `ConnectionHolder`.
This is needed to be able to notify stream observer about used
connection even if initialization fails. It is later possible to
purge connections for the given server. Previously stream observer
did not get to know the connection and pool was not purged on
connectivity errors.
@lutovich lutovich merged commit e0bb062 into neo4j:1.4 Jun 21, 2017
@lutovich lutovich deleted the 1.4-byte-arrays branch June 21, 2017 14:03
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant