Skip to content

Commit 08b7258

Browse files
authored
Poller max open files limited to 1M. (#1811)
1 parent 935f6d3 commit 08b7258

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/kernel/Communicator.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,6 +1609,9 @@ int Communicator::create_poller(size_t poller_threads)
16091609
if ((ssize_t)params.max_open_files < 0)
16101610
return -1;
16111611

1612+
if (params.max_open_files > 1024 * 1024)
1613+
params.max_open_files = 1024 * 1024;
1614+
16121615
this->msgqueue = msgqueue_create(16 * 1024, sizeof (struct poller_result));
16131616
if (this->msgqueue)
16141617
{

0 commit comments

Comments
 (0)