Skip to content

Commit c782033

Browse files
committed
mysql-live-select updated to 0.0.16
* Added instructions to close connections on readme
1 parent f504e74 commit c782033

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

.versions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ id-map@1.0.2
1717
insecure@1.0.2
1818
jquery@1.11.3
1919
json@1.0.2
20-
local-test:numtel:mysql@0.1.2
20+
local-test:numtel:mysql@0.1.3
2121
logging@1.0.6
2222
meteor@1.1.4
2323
minifiers@1.1.3
2424
minimongo@1.0.6
2525
mongo@1.0.11
26-
numtel:mysql@0.1.2
26+
numtel:mysql@0.1.3
2727
observe-sequence@1.0.4
2828
ordered-dict@1.0.2
2929
random@1.0.2

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,21 @@ Name | Listener Arguments | Description
6767
`removed` | `index, oldRow` | Row removed, after update
6868
`reset` | `msg` | Subscription reset (most likely due to code-push), before update
6969

70+
## Closing connections between hot code-pushes
71+
72+
With Meteor's hot code-push feature, a new connection the database server is requested with each restart. In order to close old connections, a handler to your application process's `SIGTERM` signal event must be added that calls the `end()` method on each `LiveMysql` instance in your application.
73+
74+
On the server-side of your application, add the event handler like this:
75+
76+
```javascript
77+
var liveDb = new LiveMysql(Meteor.settings.mysql);
78+
79+
process.on('SIGTERM', function() {
80+
liveDb.end();
81+
process.exit();
82+
});
83+
```
84+
7085
## Tests / Benchmarks
7186

7287
A MySQL server configured to output the binary log in row mode is required to run the test suite.

package.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
Package.describe({
22
name: 'numtel:mysql',
33
summary: 'MySQL support with Reactive Select Subscriptions',
4-
version: '0.1.2',
4+
version: '0.1.3',
55
git: 'https://github.com/numtel/meteor-mysql.git'
66
});
77

88
Npm.depends({
99
'mysql': '2.5.4',
10-
'mysql-live-select': '0.0.15'
10+
'mysql-live-select': '0.0.16'
1111
});
1212

1313
Package.onUse(function(api) {

0 commit comments

Comments
 (0)