From: Brian Candler Date: 2010-04-07T05:33:11+09:00 Subject: Re: Maximum number of sockets I'd have thought that you'd hit a limit of 1024 because of fd_set (man select). When I run your code, it stops after 1021 with: in `initialize': Too many open files - socket(2) (Errno::EMFILE) This is ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux] from Karmic. I suspect you have managed to go 8 bytes beyond the limit (1024+64=1088) before overwriting something important and killing the ruby interpreter - presumably the newer 1.8.7 I have fixes this. To go beyond this limit you may need to use something like eventmachine which uses poll/epoll instead of select. -- Posted via http://www.ruby-forum.com/.