osm-spline / xappy.js

Xappy.JS
Other
37 stars 4 forks source link

Close/abort query on client (http) disconnect #40

Closed booo closed 12 years ago

booo commented 13 years ago

At the moment there is no notification about client disconnects. We need an event to abort/close the database queries. Check if node-postgres provides a function to close/abort a query.

On disconnect => abort query.

booo commented 13 years ago

This should be used in the request handler. But first of all we need tests ;)

res.socket.on('close', function() {
    queries.close()
});
booo commented 12 years ago

See https://github.com/brianc/node-postgres/pull/68

slomo commented 12 years ago

solved and merged