Hello!
You just have to add ;Connect Timeout=5000 on the Connection String. The Timeout must be in Milliseconds.
Regards!