Generally timeout issue occurs because of the compatibility when an application uses Microsoft .net framework 3.5 or 4 data provider (sql client) to connect to the mirrored database.
Note: If ConnectionTimeout property is assigned a value of 15 seconds, user may receive error after connection is open for 1.2 seconds.
The timeout of the SQL ‘statement’ is set to 30 s by default. Timeout property is of the SQLCommand object. User can set property according to their requirements:
using (SqlCommand myCommand = new SqlCommand())
{
// Set the new command timeout to 60 seconds
// in stead of the default 30
myCommand.CommandTimeout = 60;
}