Skip to content

Conversation

jmazon
Copy link
Contributor

@jmazon jmazon commented Jan 17, 2014

Previous patch solved the problem with a half measure: it simply
copied the missing part of the reconnection flow from the connection
flow (namely, saving the DBI handle). It's better to just use the
same code.

Short term benefit: the last_connection_check timestamp
will be set at connection time, instead of at the next call after
reconnect, which allows to spare a connection check on the next
call.
Long term benefit: fewer chances of diverging further.

Previous patch solved the problem with a half measure: it simply
copied the missing part of the reconnection flow from the connection
flow (namely, saving the DBI handle).  It's better to just use the
same code.

Short term benefit: the last_connection_check timestamp
will be set at connection time, instead of at the next call after
reconnect, which allows to spare a connection check on the next
call.
Long term benefit: fewer chances of diverging further.
bigpresh added a commit that referenced this pull request Mar 6, 2014
Join the reconnection and connection codepaths
@bigpresh bigpresh merged commit 74f4eae into bigpresh:master Mar 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants