#560 Make number of send retries configurable