Giter Club home page Giter Club logo

node-drpc's People

Contributors

rkatti avatar wojtekk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-drpc's Issues

Remote DRPC with LocalCluster

HI,
I am facing a problem when I try to use node-drpc with my trident DRPC which is submitted on a LocalCluster. Is node-drpc able to use with a localCluster?
The client.execute will block my node.js program a long time and at last return nothing, codes inside the callback function (some console.log for debugging) is unused neither.
I tried to figure out where the problem is by testing several parts of my program:

  1. DRPC will responses to my Java DRPCClient calling and my LocalDRPC calling
  2. I change the hostname to an unreachable address in the drpcClient = new NodeDRPCClient(hostname,port,timeout) part, and execute the drpc calling, and there is no response as before, after blocking a long time, it will return with nothing. Is that a correct reaction in time-out situation? Or I just doing some incorrect configuration and make it unusable?

This is my node.js code:

var NodeDRPCClient = require('node-drpc');
var timeout = 1;
var nodeDrpcClient = new NodeDRPCClient("192.168.0.135",3772,timeout);
nodeDrpcClient.execute("imageMatching",JSON.stringify("test"),function(err,res){
  console.log("i am in!")
  if(err)
    console.err("wrong");
  });
console.log("hungry");

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.