Skip to content

Commit aeb99b3

Browse files
committed
removed SIGINT handling
1 parent 47bf067 commit aeb99b3

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

index.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,6 @@ var pouchMirror = module.exports = function(dbname, remoteURL, options) {
6464
startLiveReplication();
6565
});
6666

67-
function cleanup() {
68-
console.log('Shutdown signal received: terminating replications');
69-
shutdown = true;
70-
self.replicator.cancel();
71-
}
72-
73-
process.on('SIGTERM', cleanup);
74-
process.on('SIGINT', cleanup);
75-
7667
};
7768

7869
pouchMirror.prototype.get = function() {

license.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2014 Colin Skow
3+
Copyright (c) 2014, 2015 Colin Skow
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ db.post({title: "Ziggy Stardust"})
4949

5050
In case there is a replication error, PouchMirror will automatically retry with an [exponential backoff](https://en.wikipedia.org/wiki/Exponential_backoff).
5151
This will attempt to reconnect less and less frequently until the replication is re-established, at which point it
52-
resets.
52+
resets. To cancel replication simply call `db.cancelSync()`.
5353

5454
The options are:
55-
* initialTimeout (default 1000, 1 sec)
55+
* initialTimeout (default 1000 ms, 1 sec)
5656
* backoff - the amount the timeout is multiplied each retry (default 2)
5757
* maxTimeout - the timeout will never exceed this value (default 600000, 10 min)
5858
* noRetry - if this is set to true no retry will be attempted (default false)

0 commit comments

Comments
 (0)