cuducos / chunk

🧱 Chunk is a download manager for slow and unstable servers
MIT License
56 stars 3 forks source link

Prototypes a GET HTTP request with retries and an independent timeout #1

Closed cuducos closed 2 years ago

cuducos commented 2 years ago

Prototypes a GET HTTP request with retries and an independent timeout.

The main question here is whether the suggested getWithTimeout is a safe and good practice — i.e. an early return on a function when there's a child goroutine that might be working yet.