title: How to set connection timeout in SQLAlchemy
body: <p>I'm trying to figure out how to set the connection timeout in <code>create_engine()</code>, so far I've tried:</p>
  
  <pre><code>create_engine(url, timeout=10)
  </code></pre>
  
  <blockquote>
    <p>TypeError: Invalid argument(s) 'timeout' sent to create_engine(), using configuration PGDialect_psycopg2/QueuePool/Engine.  Please check
    that the keyword arguments are appropriate for this combination of
    components.</p>
  </blockquote>
  
  <pre><code>create_engine(url, connection_timeout=10)
  </code></pre>
  
  <blockquote>
    <p>TypeError: Invalid argument(s) 'connection_timeout' sent to
    create_engine(), using configuration
    PGDialect_psycopg2/QueuePool/Engine.  Please check that the keyword
    arguments are appropriate for this combination of components.</p>
  </blockquote>
  
  <pre><code>create_engine(db_url, connect_args={'timeout': 10})
  </code></pre>
  
  <blockquote>
    <p>(psycopg2.OperationalError) invalid connection option
    "timeout"</p>
  </blockquote>
  
  <pre><code>create_engine(db_url, connect_args={'connection_timeout': 10})
  </code></pre>
  
  <blockquote>
    <p>(psycopg2.OperationalError) invalid connection option
    "connection_timeout"</p>
  </blockquote>
  
  <pre><code>create_engine(url, pool_timeout=10)
  </code></pre>
  
  <p>What should I do?</p>