---
title: timeoutInterval
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlrequest/timeoutinterval
---

# timeoutInterval

The timeout interval of the request.

## Declaration

```swift
var timeoutInterval: TimeInterval { get set }
```

## Discussion

Discussion If during a connection attempt the request remains idle for longer than the timeout interval, the request is considered to have timed out. The default timeout interval is 60 seconds. As a general rule, you should not use short timeout intervals. Instead, you should provide an easy way for the user to cancel a long-running operation. For more information, read Designing for Real-World Networks in Networking Overview.

## See Also

### Controlling request behavior

- [httpShouldHandleCookies](foundation/urlrequest/httpshouldhandlecookies.md)
- [httpShouldUsePipelining](foundation/urlrequest/httpshouldusepipelining.md)
- [allowsCellularAccess](foundation/urlrequest/allowscellularaccess.md)
- [allowsPersistentDNS](foundation/urlrequest/allowspersistentdns.md)
- [assumesHTTP3Capable](foundation/urlrequest/assumeshttp3capable.md)
- [cookiePartitionIdentifier](foundation/urlrequest/cookiepartitionidentifier.md)
- [requiresDNSSECValidation](foundation/urlrequest/requiresdnssecvalidation.md)
