logoalt Hacker News

bashkiddieyesterday at 9:35 AM1 replyview on HN

I would like to second this.

In Golang if you iterate over a thousand files and

    defer File.close()
your OS will run out of file descriptors

Replies

Joker_vDyesterday at 1:26 PM

Well, unless you're on Windows :D Even on Windows XP Home Edition I could open a million file handles with no problems.

Seriously, why is default ulimit on file descriptors on Linux measly 1024?

show 2 replies