[R] read.socket and timeout

Sean Davis sdavis2 at mail.nih.gov
Mon Apr 12 20:26:02 CEST 2010


I have an external process that is listening to and responding on a
port.  This is working fine.  If the external service is not running,
though, read.socket does not return and I do not see a way to
interrupt it.  Is there a general way to deal with this situation to
have a timeout or of testing a socket connection?

Thanks,
Sean



More information about the R-help mailing list