In the current implementation of TUSKit (iOS), URLRequest timeout is hardcoded to 30 seconds in TUSAPI.swift:
URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: 30)
This approach limits flexibility when dealing with large file uploads or slow networks, and does not allow developers to control how long a request can take before timing out.
Comparison with Android TUS Client:
The Android Tus client provides timeout configurability through the following API:
TusClient().connectTimeout(...)
This allows developers to easily adjust request behavior to suit various conditions and use cases.
Feature Request:
Add support for a configurable timeoutInterval for upload requests in TUSKit , ideally exposed via TUSClient property, so developers can set this globally.