Skip to content

Allow setting connect/read/write timeouts for requests #849

Open
@David-Development

Description

@David-Development

Right now there is no option to control the default timeouts (connect / read / write) for requests that are defined by the Nextcloud Files App. E.g. the Nextcloud News App makes a long running request for adding new feeds. The duration is basically determined by how fast the server is because the request will wait until the feed has been added successfully on the server side.

Therefore allowing single requests to have a longer / different timeout would be ideal.

I found an interesting article where someone explains a way to set timeouts dynamically via Headers that will be interpreted by OkHTTP later on. I believe this setup would fit perfectly fine into the SSO Lib: https://www.jndiary.com/post/setup-timeout-dynamically-with-retrofit

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions