Skip to content

Added communicationTimeout options #270

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

he-is-harry
Copy link
Contributor

  • Added the connect option communicationTimeout which indicates in
    milliseconds how long the client will wait for a response to individual
    packet requests before timing out and producing an error
    • The connect option will affect all packet requests to the server
      including packets sent when connecting, fetches, write lobs,
      commits and rollbacks
    • Note that although the client may timeout, the packet can still
      reach the server, i.e. commit packets can commit on the server
      despite a timeout on the client side
  • Added the communicationTimeout to the options field of Client.exec,
    Client.execute, Client.prepare, Statement.exec and Statement.execute
    • Will timeout packet requests associated with the function
      after the given milliseconds
  • Updated the unit and integration tests to test and include the
    communicationTimeout option

- Added initial isValid(timeout) check which will return true if the
client can send a request to the server and receive a reply within
the timeout
    - timeout is given in seconds
- Updated Connection.send so that it can accept a communicationTimeout
option to timeout a request to the server and return a timeout error
- Added unit and integration tests for isValid
- Added the connect option communicationTimeout which indicates in
milliseconds how long the client will wait for a response to individual
packet requests before timing out and producing an error
    - The connect option will affect all packet requests to the server
      including packets sent when connecting, fetches, write lobs,
      commits and rollbacks
    - Note that although the client may timeout, the packet can still
      reach the server, i.e. commit packets can commit on the server
      despite a timeout on the client side
- Added the communicationTimeout to the options field of Client.exec,
Client.execute, Client.prepare, Statement.exec and Statement.execute
    - Will timeout packet requests associated with the function
      after the given milliseconds
- Updated the unit and integration tests to test and include the
communicationTimeout option
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.

1 participant