Increasing limit of FD_SETSIZE and select

前端 未结 5 1078
长情又很酷
长情又很酷 2020-11-27 16:38

I want to increase FD_SETSIZE macro value for my system. Is there any way to increase FD_SETSIZE so select will not fail

5条回答
  •  眼角桃花
    2020-11-27 17:23

    I also suggest using poll if possible. And there exist several "event" processing libraries like libevent or libev (or the event abilities of Glib from GTK, or QtCore, etc) which should help you. There are also things like epoll. And your problem is related to C10k

提交回复
热议问题