Displaying 2 results from an estimated 2 matches for "fssocket".
2006 Mar 25
2
R gets slow
...models are generated in less than one
second and one hour later, the same models are generated in more than
ten seconds (even training with same data). If I restart the server ,
then it works well (fast). I don't know if I have to free the memory
or something.
Here you have the code:
R server:
FSsocket <- function(){
continue = TRUE;
while(continue){
conn <- try(socketConnection(server = TRUE, port = 7890, blocking =
TRUE, open = "ab"), silent = FALSE);
isOpened = !inherits(conn, "try-error");
isOpened = isOpened && isOpen(conn);
while(!isOpened){...
2006 Feb 05
2
R socket communication
...gets blocked.
The client seems to work fine since I tested it with a PERL server.
I tried many combination of params in the socketConnection but
none of them worked.
I have seen some examples where the server sends something to a
client but I need the opposite example.
Thanks,
Pau.
The R server
FSsocket() <- function(){
print("Creating server on localhost")
conn <- socketConnection(server = TRUE, port = 7890, open = "r+")
print("Reading data")
aa <- readLines(conn)
print("end reading lines")
close(conn)
pirnt("Connection closed")
}
Note: I...