www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - AutoTester file limit

reply Robert Schadek via Digitalmars-d <digitalmars-d puremagic.com> writes:
Currently I have problems with my Logger PR. It magically fails from
time to time.
Whenever it fails std.socket fails with:

"Open file hard limit too low"

As far as I can see that is why my tests fail as well. Is this limit a
known problem? Suggestions?
Jun 12 2014
parent reply "Kapps" <opantm2+spam gmail.com> writes:
On Thursday, 12 June 2014 at 10:04:35 UTC, Robert Schadek via 
Digitalmars-d wrote:
 Currently I have problems with my Logger PR. It magically fails 
 from
 time to time.
 Whenever it fails std.socket fails with:

 "Open file hard limit too low"

 As far as I can see that is why my tests fail as well. Is this 
 limit a
 known problem? Suggestions?
I could be wrong about this, but from what I remember this comes down to DMC's runtime library. The max number of open file descriptors with apis such as fopen is pretty low (about 70 from what I remember) when using DMC's C runtime (which DMD does use). I don't think you can do much about it besides making sure you're actually closing files when appropriate as some tests might be leaking open file handles.
Jun 12 2014
parent reply "Steven Schveighoffer" <schveiguy yahoo.com> writes:
On Thu, 12 Jun 2014 21:22:25 -0400, Kapps <opantm2+spam gmail.com> wrote:

 On Thursday, 12 June 2014 at 10:04:35 UTC, Robert Schadek via  
 Digitalmars-d wrote:
 Currently I have problems with my Logger PR. It magically fails from
 time to time.
 Whenever it fails std.socket fails with:

 "Open file hard limit too low"

 As far as I can see that is why my tests fail as well. Is this limit a
 known problem? Suggestions?
I could be wrong about this, but from what I remember this comes down to DMC's runtime library. The max number of open file descriptors with apis such as fopen is pretty low (about 70 from what I remember)
It's 64. But I would hope std.socket doesn't use DMC file descriptors. Winsock doesn't use them. -Steve
Jun 12 2014
parent Robert Schadek via Digitalmars-d <digitalmars-d puremagic.com> writes:
On 06/13/2014 04:03 AM, Steven Schveighoffer via Digitalmars-d wrote:
 On Thu, 12 Jun 2014 21:22:25 -0400, Kapps <opantm2+spam gmail.com> wrote:

 I could be wrong about this, but from what I remember this comes down
 to DMC's runtime library. The max number of open file descriptors
 with apis such as fopen is pretty low (about 70 from what I remember)
It's 64. But I would hope std.socket doesn't use DMC file descriptors. Winsock doesn't use them. -Steve
thanks for the info.
Jun 13 2014