# LibTmux.ServerConnectionOptions.CommandTimeout

- **Module:** LibTmux.ServerConnectionOptions
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Connection/TmuxConnectionOptions.cs#L162
- **Page:** https://libtmux.org/en/dotnet/latest/reference/libtmux-serverconnectionoptions-commandtimeout/

Gets how long one tmux command may run, or null to wait indefinitely.

A tmux that stops answering otherwise hangs the caller until its own
cancellation token fires, and forever if it passed none. On expiry the
command throws <see cref="TmuxTransportException" /> whose
<see cref="LibTmuxException.Dispatch" /> is
<see cref="TmuxDispatchState.Unknown" />: tmux may already have acted.
A caller's own cancellation still wins, and reads as cancellation.
Connecting is bounded by it too: reading the version and the server's
generation are tmux commands like any other.
