Skip to content

Commit

Permalink
Unregister sessions from server when their heartbeats time out.
Browse files Browse the repository at this point in the history
Conflicts:
	History.md
  • Loading branch information
Emily Stark committed May 9, 2014
1 parent 0fa591b commit 247ab62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions History.md
@@ -1,6 +1,12 @@
## v.NEXT


## v.0.8.1.2

* Fix memory leak (introduced in 0.8.1) by making sure to unregister
sessions at the server when they are closed due to heartbeat timeout.


## v0.8.1.1

* Fix 0.8.1 regression preventing clients from specifying `_id` on insert. #2097
Expand Down
2 changes: 1 addition & 1 deletion packages/livedata/livedata_server.js
Expand Up @@ -298,7 +298,7 @@ var Session = function (server, version, socket, options) {
heartbeatInterval: options.heartbeatInterval,
heartbeatTimeout: options.heartbeatTimeout,
onTimeout: function () {
self.destroy();
self.close();
},
sendPing: function () {
self.send({msg: 'ping'});
Expand Down

0 comments on commit 247ab62

Please sign in to comment.