WordPress / WordPress/Requests

Allow setting no timeout

Open
#255 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Component: Transports
Dominant language
PHP
Stars
3.6k
Forks
500
Avg merge
2d 21h
Merged PRs (30d)
5

Description

When I try to download a file, timeout error occurs before it is completely downloaded. How can I disable timeout ?

\Requests::get($url, array(
  "User-Agent" => $userAgent
), array(
  "filename" => $zipFile,
));

Shouldn't timeout be automatically disabled when handling file downloads ?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the Requests::get call shown in the issue and trace how the filename option reaches timeout handling during downloads. Confirm how timeout values are currently applied, then verify that a download can explicitly disable the timeout without affecting ordinary requests.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.