Skip to content
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

db: reconnect on connection errors #286

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
9012927
Add a recovering mechanism to reconnect and retry a query if the serv…
xiam Oct 4, 2016
cabedd7
Fix bug with ghost values in execer
xiam Oct 5, 2016
c93dbcf
Update retry mechanism.
xiam Oct 17, 2016
1de668f
Merge branch 'issue-226' of github.com:upper/db into issue-226
xiam Oct 17, 2016
6475aea
Make d.recoverFromErr only catch ErrBadConn.
xiam Oct 17, 2016
b3306f0
Merge pull request #282 from upper/issue-280
Oct 21, 2016
c267726
Merge pull request #281 from upper/issue-279
Oct 21, 2016
de7bff7
Manual merge
xiam Oct 24, 2016
7a86715
Add reconnect (WIP +debug messages)
xiam Oct 24, 2016
0f9bfe3
Better logic for handling connect/reconnect
xiam Oct 26, 2016
4af4871
Cleaning up remaining reconnection bits
xiam Oct 27, 2016
f08946e
Removing log messages and adding a test for bad connection.
xiam Nov 4, 2016
e523258
Update docstrings
xiam Nov 4, 2016
2a02240
Remove "could not read block" from db.ErrServerRefusedConnection
xiam Nov 4, 2016
cfb43e3
Ping within a transaction.
xiam Nov 4, 2016
3538ba3
Don't block Transaction() before connecting.
xiam Nov 4, 2016
13181c0
Merge pull request #269 from upper/issue-226
Nov 8, 2016
ec0678d
Use db.ErrTooManyReconnectionAttempts instead of db.ErrGivingUpTrying…
xiam Nov 8, 2016
6d206db
Merge branch 'master' into feature/err-too-many-reconnection-attempts
xiam Nov 8, 2016
53a97dd
Merge pull request #283 from upper/feature/err-too-many-reconnection-…
Nov 10, 2016
37e2780
Fixes after testing reconnect with a low number of available connecti…
xiam Nov 10, 2016
78d28bc
Make retry-on-error configurable and disable it by default.
xiam Nov 10, 2016
340d8eb
Add db.Conf.SetRetryQueryOnError to PostgreSQL test.
xiam Nov 10, 2016
118944d
Fix call to c.setBinaryOption
xiam Nov 10, 2016
7017914
Add missing db.Conf.RetryQueryOnError
xiam Nov 10, 2016
ed13348
Add d.recoverAttempts for counting recovery attempts up to discardCon…
xiam Nov 14, 2016
02b5a72
Use flushConnectionPoolAfterRecoverAttempts and remove ConnCheck.
xiam Nov 14, 2016
963d413
Merge branch 'master' into feature/test-reconnect-with-few-connections
xiam Nov 16, 2016
838332f
Removing flawed logic: don't close before having a valid new conn to …
xiam Nov 16, 2016
33b8d62
Mark prepared statements as ready to be closed after using them
xiam Nov 16, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Better logic for handling connect/reconnect
xiam committed Oct 26, 2016
commit 0f9bfe3ea7b06dffcdd24fcccdbf8a5f183e3198
Loading