accept

      想限制对远程连接的accept个数,于是在连接数大于MAX的时候不accpet(异步IO,收到EPOLLIN后不accept),结果错误。
      正确的做法是先accept,如果发现此时连接数大于MAX再close它。

相关文章

分类

留言:

关于文章

This page contains a single entry by DongHao published on 08 26, 2009 7:10 PM.

大师? was the previous entry in this blog.

《linux驱动开发详解》 is the next entry in this blog.

Find recent content on the main index or look in the 存档 to find all content.