-
Notifications
You must be signed in to change notification settings - Fork 149
Connection Hint: supporting connection.recv_timeout_seconds #761
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
Connection Hint: supporting connection.recv_timeout_seconds #761
Conversation
This value defines the time the client should wait for a response on a connection before it times out. Co-authored-by: Rouven Bauer <rouven.bauer@neotechnology.com>
const receiveTimeoutInSeconds = toNumber(receiveTimeoutRaw) | ||
if (receiveTimeoutInSeconds > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if even feasible in JS's limited number type, but we also don't expect floats from the server.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will create tests with float number to limit this option. One question, should 3.0
be considered an invalid value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know how the JS drivers handles numbers internally. But the server is expected to sent an Integer (strongly typed through packstream). It might well be, however, that at this point in the code, the type information is already lost. In that case, I'd say 3.0 is also ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At that point, I already lost this information. Since 3 is the same as 3.0 for JS. So, I'm verifying if it's a Integer using the JS Number definition of integer.
Co-authored-by: Robsdedude <dev@rouvenbauer.de>
Co-authored-by: Robsdedude <dev@rouvenbauer.de>
Co-authored-by: Robsdedude <dev@rouvenbauer.de>
4ded350
to
da448b8
Compare
da448b8
to
ad7ec10
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💻
This value defines the time the client should wait for a response on a connection before it times out.
Co-authored-by: Rouven Bauer rouven.bauer@neotechnology.com