title: NHibernate: how to set connection timeout
body: <p>Is there any way to globally setup time you would wait for connecting to a given database, before a connection failure in NHibernate (connection timeout)? In ADO.NET you can do it for a single connection like this:</p>
  
  <pre><code>new SqlConnection().ConnectionTimeout = 10;
  </code></pre>
  
  <p>I found how to setup the time you would wait for a result set, before a command execution failure <a href="https://stackoverflow.com/questions/7010075/how-to-globally-set-timeout-in-nhibernate">here</a> (command timeout). But, apparently, that's not what I need</p>