Handling more than 1024 file descriptors, in C on Linux

后端 未结 3 850
一个人的身影
一个人的身影 2020-12-16 23:20

I am working on a threaded network server using epoll (edge triggered) and threads and I\'m using httperf to benchmark my server.

So far, it\'s performing really wel

3条回答
  •  隐瞒了意图╮
    2020-12-16 23:45

    Just don't.

    Yes, I mean that.

    If you need to increase the file descriptors, there's a hidden bug in your code. Hunt it down instead of treating its symptoms. Remember to close file descriptors when you're done.

提交回复
热议问题