Clever / thrift-pool

A module that wraps thrift interfaces in connection pooling logic to make them more resilient.
Apache License 2.0
22 stars 15 forks source link

Thrift-pool: Connection closed #22

Open guptanishank opened 7 years ago

guptanishank commented 7 years ago

I am getting this error immediately after connection is created.

Here is my code:
var options = {
    transport: thrift.TBufferedTransport,
    protocol: thrift.TBinaryProtocol,
    path: "/data",
    timeout:10000
};
var thrift_client = thriftPool(thrift, thClientService, {host: "hostname", port: 80 }, options);
thrift_client.getData(id, function(err, data){
         if(errr){
           console.log(error);
        }
         console.log(data);
});