Skip to content

Support configurable timeoutInterval for upload requests (parity with Android client) #210

@sarikavijayan

Description

@sarikavijayan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions