[Rd] DetachedEval Issues

Simon Urbanek simon.urbanek at r-project.org
Tue Aug 17 22:47:40 CEST 2010


On Aug 17, 2010, at 9:32 AM, Martin Kerr wrote:

> 
> Hello everyone,
> I have been attempting to make use of the newly implemented detachedEval functionality and I am having a few teething issues.

I presume you're talking about Rserve? Please use the proper mailing list rosuda-stats-devel for that.


> My code works fine when tested with both the Client and the Server on a single machine, but issues arise when I run them separately.Possibly because the local / local connection is running voer a Unix socket rather than tcp proper?
> Rsession* theSession;theSession = rc->detachedEval("source(\"hdlc_processing.r\")");delete rc;
> rc = new Rconnection(theSession);rc->connect();
> 
> Owing to firewall issues I am having to make use of an ssh tunnel for the connection, hence the manual override of the port number.

Which is entirely wrong - sessions don't re-attach to the server but to the random port generated on detach by the client.

Cheers,
Simon



> Thus I am in fact using this:
> Rsession* testSession = new Rsession(theSession->host(),6311,theSession->key());rc = new Rconnection(testSession);rc->connect();
> This results in the following being outputted on the Rserve debug side.
> session: resuming session, waiting for connections.connection accepted.sending ID string.
> header read result: 16DUMP [16]: 31 be 18 07 15 57 93 6f 9d a3 53 56 99 f4 3b 7fdiscarding buffer because too big (awaiting 1871927061 bytes)
> Any help would be greatly appreciated.
> Thank You
> Martin Kerr
> 		 	   		  
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
> 
> 



More information about the R-devel mailing list