Connect Timeout=30 means, within 30second sql server should establish the connection.other wise current connection request will be cancelled.It is used to avoid connection attempt to waits indefinitely.
by declaring timeout in web-config file
connection.ConnectionTimeout = 0; // This is not working A value of 0 indicates no limit (an attempt to execute a command will wait indefinitely).