# ConnectionOptions.CloseConnectionTimeout

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.configuration.connectionoptions/) | [Properties](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.configuration.connectionoptions/properties/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Core/Networking/ConnectionOptions.cs)

```csharp
public TimeSpan CloseConnectionTimeout
```

Gets or sets the timeout for gracefully closing a connection. If the timeout is exceeded, the connection will be forcefully closed.
