function onDDPVersionNegotiationFailure(description) {
  Meteor._debug(description);
  if (Package.reload) {
    var migrationData =
      Package.reload.Reload._migrationData('livedata') ||
      Object.create(null);
    var failures = migrationData.DDPVersionNegotiationFailures || 0;
    ++failures;
    Package.reload.Reload._onMigrate('livedata', () => {
      return [true, { DDPVersionNegotiationFailures: failures }];
    });
    retry.retryLater(failures, () => {
      Package.reload.Reload._reload({ immediateMigration: true });
    });
  }
}
Пример #2
0
  ].forEach(arch => {
    let totalSize = 0;

    WebApp.clientPrograms[arch].manifest.forEach(resource => {
      if (resource.where === 'client' &&
          ! RoutePolicy.classify(resource.url) &&
          ! shouldSkip(resource)) {
        totalSize += resource.size;
      }
    });

    if (totalSize > 5 * 1024 * 1024) {
      Meteor._debug([
        "** You are using the appcache package but the total size of the",
        `** cached resources is ${(totalSize / 1024 / 1024).toFixed(1)}MB.`,
        "**",
        "** This is over the recommended maximum of 5MB and may break your",
        "** app in some browsers! See http://docs.meteor.com/#appcache",
        "** for more information and fixes."
      ].join("\n"));
    }
  });
const observe = () => {
    observeHandle = Servers.find().observe({
        removed(document) {
            if (document._id === serverId) {
                if (!isWatcher) {
                    Meteor._debug('Server Presence Timeout', 'The server-presence package has detected inconsistent presence state. To avoid inconsistent database state your application is exiting.');
                    exitGracefully = false;
                    process.kill(process.pid, 'SIGHUP');
                } else {
                    insert();
                }
            } else if (isWatcher) {
                if (!document.graceful) {
                    runCleanupFunctions(document._id);
                }
            } else if (document.watcher) {
                if (!document.graceful) {
                    runCleanupFunctions(document._id);
                }
                updateWatcher();
            }
        },
    });
};
Пример #4
0
 callback = function(err) {
   if (err) {
     Meteor._debug(type + " failed: " + (err.reason || err.stack));
   }
 };
Пример #5
0
 }).catch((error) => {
   Meteor._debug('[ostrio:flow-router-extra] [route.wait] Promise not resolved', error);
 });