riotkit-org / br-backup-maker

Lightweight, single-binary Backup Repository client. Part of E2E Backup Architecture designed by RiotKit
Other
1 stars 0 forks source link

Set timeout for HTTP uploads #41

Open blackandred opened 1 year ago

blackandred commented 1 year ago

In case, when the server will not be responding we need to set a timeout on client side.

Case:

blackandred commented 1 year ago

I suggest also to add a client-side verification of the server before starting the upload. The could be a server endpoint to verify client supplied authorization, write access and possibility to perform the backup at all.

That would be an additional layer of protection against weird cases, and would increase clarity - as the client would be able to know what is going on.

Example messages returned back:

blackandred commented 1 year ago

Related issue https://github.com/riotkit-org/br-backup-maker/issues/48