Re: [Rd] [linux] connection never times out

From: Jeroen Ooms <jeroen.ooms_at_stat.ucla.edu>
Date: Tue, 12 Jul 2011 22:22:51 +0200

> Can you please verify the behaviour is still the same in a recent R-devel or
> at least R-2.13.1? And that there was no other already answered request on
> R-help or R-devel re. timeouts?

The code below is R 2.13.1. It shows that the timeout time is more than 3 minutes, although it was set to 5 seconds.

> options(timeout=5)
> system.time(download.file("http://123.123.123.123", dest=tempfile()))
trying URL 'http://123.123.123.123'
Error in download.file("http://123.123.123.123", dest = tempfile()) :   cannot open URL 'http://123.123.123.123' In addition: Warning message:
In download.file("http://123.123.123.123", dest = tempfile()) :   unable to connect to '123.123.123.123' on port 80. Timing stopped at: 0 0 189.375
> sessionInfo()

R version 2.13.1 (2011-07-08)
Platform: i686-pc-linux-gnu (32-bit)

locale:

 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=C              LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base
>



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 12 Jul 2011 - 20:26:21 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 18 Jul 2011 - 22:30:11 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive