Automatic Reupload Attempts for Failed Descriptors
Description
From the Security page:
If descriptor uploads fail due to network issues or relay unavailability, administrators must manually restart the process. Automating reuploads would improve reliability.
This seems to be happening because:
- Function upload_descriptor() may raise
stem.InvalidRequestandstem.ProtocolError. - But these exceptions aren't handled by OnionbalanceService._upload_descriptor.
Tasks
-
Properly act on
stem.InvalidRequestandstem.ProtocolErrorexceptions. - Update the Security page accordingly.
-
Consider to re-bootstrap the Tor connection after every failed upload
job. - Implement reupload attempts for failed descriptors.
- Check if there are other problems preventing Onionbalance to upload failed descriptors again.
Time estimation
- Complexity: very small (0.5 day)
- Uncertainty: low (x1.1)
- Reference (adapted)
Edited by Silvio Rhatto