Skip to content

connection doesn't closes #126

@habi4ek

Description

@habi4ek

Hi use OrientDB 2.1.7 and orientjs 2.1.0

if I use "db.close()" and then "server.close()"
there appear two connection that have never disappear in the database

function(req,res) {
    var Oriento =  require('orientjs');

    var server = Oriento({
                    host: 'localhost',
                    port: 2424,
                    username: 'root',
                    password: 'password',
                    transport: 'binary'
                });

    var db = server.use({
                name: 'esalgyt4',
                username: 'admin',
                password: 'admin'
            });

    db.query('Select from Ouser')
        .then(function(ress){
            db.close();
            server.close();
            res.send(ress);
        })
        .catch(function(ress){
            db.close();
            server.close();
            res.send(ress);
        });

git

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions