Sha256: 65a7b7aaceb96f2328600086c8134696a4c236872c8c6b8598105baaddad6b67
Contents?: true
Size: 454 Bytes
Versions: 4
Compression:
Stored size: 454 Bytes
Contents
require_relative 'em_test_helper' class TestManyFDs < Test::Unit::TestCase def setup @port = next_port end def test_connection_class_cache mod = Module.new a = nil Process.setrlimit(Process::RLIMIT_NOFILE, 4096) rescue nil EM.run { EM.start_server '127.0.0.1', @port, mod 1100.times do a = EM.connect '127.0.0.1', @port, mod assert_kind_of EM::Connection, a end EM.stop } end end
Version data entries
4 entries across 4 versions & 2 rubygems