[Rd] [linux] connection never times out
simon.urbanek at r-project.org
Tue Jul 12 23:23:24 CEST 2011
On Jul 12, 2011, at 4:22 PM, Jeroen Ooms wrote:
>> 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.
and re-run your test.
Are you running this from a command-line R or do you have any graphics or GUIs running? (I'm asking because any fast handler activity will cancel timeouts)
>> system.time(download.file("http://220.127.116.11", dest=tempfile()))
> trying URL 'http://18.104.22.168'
> Error in download.file("http://22.214.171.124", dest = tempfile()) :
> cannot open URL 'http://126.96.36.199'
> In addition: Warning message:
> In download.file("http://188.8.131.52", dest = tempfile()) :
> unable to connect to '184.108.40.206' on port 80.
> Timing stopped at: 0 0 189.375
> R version 2.13.1 (2011-07-08)
> Platform: i686-pc-linux-gnu (32-bit)
>  LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
>  LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
>  LC_MONETARY=C LC_MESSAGES=en_US.UTF-8
>  LC_PAPER=en_US.UTF-8 LC_NAME=C
>  LC_ADDRESS=C LC_TELEPHONE=C
>  LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
> attached base packages:
>  stats graphics grDevices utils datasets methods base
> R-devel at r-project.org mailing list
More information about the R-devel