Just wanted to add, we encountered this exact same problem as well.
Our customer’s work around is to configure really short timeout on their JDBC connection, like 5 minutes.
And for other customers, we told them if you can use the HTTP interface, use it.