Skip to content

Implement timeout support for Connection.isValid(int) #685

@mrotteveel

Description

@mrotteveel

When Connection.isValid(int) was implemented in #176, it was implemented without timeout support. At some point, we also implemented registering a warning when a non-zero value was supplied. This is not an optimal solution (e.g. see this).

Although timeouts aren't possible with native/embedded, we could support it for pure-java with temporarily changing the blocking read timeout, and for native/embedded we could maybe use a CompletableFuture or something.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions