jakutis / rserve-client

A stateful client for Rserve, the TCP/IP server for R framework.
https://www.npmjs.org/package/rserve-client
MIT License
10 stars 10 forks source link

reopen the connection #5

Closed liorg2 closed 6 years ago

liorg2 commented 8 years ago

hello, thanks so much for your library- its great.

can i leave the connection open without closing it? any risk? does it have any timeout / ttl?

thanks

jakutis commented 6 years ago

@liorg2 If you leave the connection open, then the forked RServe process will also be left until the node process exits.

It does not have any timeout/ttl logic. Only since version 0.3.5 (released today), client.evaluate creates a new connection to Rserve, if the connection was closed - lost or the Rserve process was restarted.