Skip to content

Setting timeout for HTTP: requests does not hanging forever if the download speed is zero (addressing an issue when Apple does not response to HTTP GET)#1114

Merged
AndreyNikiforov merged 1 commit intoicloud-photos-downloader:masterfrom
naszta:bugfix/timeout
Apr 26, 2025
Merged

Setting timeout for HTTP: requests does not hanging forever if the download speed is zero (addressing an issue when Apple does not response to HTTP GET)#1114
AndreyNikiforov merged 1 commit intoicloud-photos-downloader:masterfrom
naszta:bugfix/timeout

Conversation

@naszta
Copy link
Copy Markdown
Contributor

@naszta naszta commented Apr 7, 2025

Addressing issue #787 .

@naszta naszta closed this Apr 7, 2025
@naszta naszta reopened this Apr 7, 2025
@AndreyNikiforov
Copy link
Copy Markdown
Collaborator

seems that symptoms this PR fixes better match #793 WDYT?

@naszta
Copy link
Copy Markdown
Contributor Author

naszta commented Apr 9, 2025

Yes, it might be. If we decide to merge: I would add it as config parameter for the session (so I would extend the commit a bit).

@AndreyNikiforov
Copy link
Copy Markdown
Collaborator

Yes, it might be. If we decide to merge: I would add it as config parameter for the session (so I would extend the commit a bit).

Oh, you mean so it applies to all requests to Apple? Sounds good. Can you think of any tests? Validating that timing out request is properly handled seems nice, but probably unrealistic to check all places. May be you can figure out how to test for original symptom (stuck requests)?

@naszta
Copy link
Copy Markdown
Contributor Author

naszta commented Apr 11, 2025

Taking a look over the weekend.

@naszta naszta force-pushed the bugfix/timeout branch 5 times, most recently from 58373da to 6f2ad28 Compare April 19, 2025 13:20
@naszta
Copy link
Copy Markdown
Contributor Author

naszta commented Apr 19, 2025

I added a similar test we have for test_handle_session_error_during_photo_iteration_name_id7

@naszta
Copy link
Copy Markdown
Contributor Author

naszta commented Apr 26, 2025

Are we cool?

@AndreyNikiforov
Copy link
Copy Markdown
Collaborator

Are we cool?

Update changelog pls. The code seems fine.

…ownload speed is zero (addressing an issue when Apple does not response to HTTP GET)
@naszta
Copy link
Copy Markdown
Contributor Author

naszta commented Apr 26, 2025

Done.

@AndreyNikiforov AndreyNikiforov merged commit 5fac423 into icloud-photos-downloader:master Apr 26, 2025
370 of 371 checks passed
@naszta naszta deleted the bugfix/timeout branch April 28, 2025 10:07
rhoopr referenced this pull request in rhoopr/kei Feb 8, 2026
…nload speed is zero (addressing an issue when Apple does not response to HTTP GET) (#1114)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants