<p>Hello to ruby experts,</p>
<p>I'm currenlty work on a project with multiple database installed <br>
and a modified osm api instance, i added a X-Venue header for requests to route to a specified correctly installed database. </p>
<p>i updated ApplicationController to connect to the specified database, it works but when i connect to a non existing database, it keeps that connection and returns database not found</p>
<p><a href="https://gist.github.com/franckt/7c6a8cf5f0d7deffb9be">https://gist.github.com/franckt/7c6a8cf5f0d7deffb9be</a></p>
<p>i'm not sure how rails works with pgsql and if establish connection is the good way, it seems that some connection polling somewhere that keeps bad connections</p>
<p>Any help on that ?</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/openstreetmap/openstreetmap-website/issues/980">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABWnLeRDE7UZm14V6c8XW1Gi-RP5G2MJks5oQGXDgaJpZM4E4Yag.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/openstreetmap/openstreetmap-website/issues/980"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>