From simon.urbanek at r-project.org  Tue Aug 17 22:47:40 2010
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Tue, 17 Aug 2010 16:47:40 -0400
Subject: [Rd] DetachedEval Issues
In-Reply-To: <COL117-W378EA286C6D372535AC580C09C0@phx.gbl>
References: <COL117-W378EA286C6D372535AC580C09C0@phx.gbl>
Message-ID: <EDD9E272-71A4-4D1D-BCFA-E36F776F6CC7@r-project.org>


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
> 
> 



[Rd] DetachedEval Issues
Simon Urbanek