anchor.diff:        HttpClientResponse response = await request.close();
         await response.drain<Null>();
       } catch (e) {
  -      printError('Error writing "$devicePath" to DevFS: $e');
  +      if (retry < kMaxRetries) {
  +        printTrace('Retrying writing "$devicePath" to DevFS due to error: $e');
  +        _scheduleWrite(devicePath, content, progressReporter, retry + 1);
  +        return;
  +      } else {
  +        printError('Error writing "$devicePath" to DevFS: $e');
  +      }
       }
       if (progressReporter != null) {
         _done++;
  
positive.code:   final Uri httpAddress;
  
    static const int kMaxInFlight = 6;
  
    int _inFlight = 0;
    Map<String, DevFSContent> _outstanding;
  
negative.code:     }
    }
  
    Future<Null> _scheduleWrite(
      String devicePath,
      DevFSContent content,
      DevFSProgressReporter progressReporter, [
      int retry = 0,
    ]) async {
      try {
        HttpClientRequest request = await _client.putUrl(httpAddress);
        request.headers.removeAll(HttpHeaders.ACCEPT_ENCODING);
  