Re: [R] increasing the # of socket connections

From: Luke Tierney <>
Date: Sat 26 Aug 2006 - 06:22:51 EST

On Fri, 25 Aug 2006, Prof Brian Ripley wrote:

> On Fri, 25 Aug 2006, Marc Kirchner wrote:
>> Dear "R-help"ers,
>> using snow on socket connections, I ran into the following error
>> > cl <- makeSOCKcluster(hosts)
>> Error in socketConnection(port = port, server = TRUE,
>> blocking = TRUE : all connections are in use
>> with "showConnections(all=T)" showing 50 open connections.
>> As - for administrative reasons - I would prefer to use snow's
>> SOCK capabilities (instead of MPI and the like), I wonder if there is a
>> way to increase the number of simultaneous open connections allowed in
>> an R session (~100 would be sufficient).
> If you really need them open at once (and are not just forgetting to close
> them), then change the constant in the file and recompile.
>> Any help/hints are greatly appreciated,
> Is this the appropriate list: not on my reading of the posting guide!

Would you have asked that question if the answer had been options(max.connections=100)? I for one would not.



Luke Tierney
Chair, Statistics and Actuarial Science
Ralph E. Wareham Professor of Mathematical Sciences
University of Iowa                  Phone:             319-335-3386
Department of Statistics and        Fax:               319-335-3017
    Actuarial Science
241 Schaeffer Hall                  email:
Iowa City, IA 52242                 WWW:

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Sat Aug 26 06:42:59 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 26 Aug 2006 - 08:26:23 EST.

Mailing list information is available at Please read the posting guide before posting to the list.