alaisi / postgres-async-driver

Asynchronous PostgreSQL Java driver
Apache License 2.0
287 stars 38 forks source link

Fixed issue where disconnect was not reconnecting and added tests #42

Open cretz opened 7 years ago

cretz commented 7 years ago

I was having an issue where I was not supplying a validation query, but the connection was actually dying (e.g. postgres restart) and it was just hanging with internal "Channel is closed" errors. I went ahead and added an opt-in config to make sure the connection is connected so as not to break BC. I also added tests for it and added tests for the validation query too.

cretz commented 7 years ago

With a couple more pull requests coming in by @jaceksokol, can this PR be revisited?

cretz commented 6 years ago

Bump @jaceksokol (and @jaroslawk might be interested too).