cplusplus.com
C++ : Forum : UNIX/Linux Programming : question about reusing a nonblock file d
 
cplusplus.com
Information
Documentation
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs


post question about reusing a nonblock file descriptor for epoll

tomtforever (1)
After receiving a client event (EPOLLIN|EPOLLOUT|EPOLLRDHUP) ,then close the nonblock file descriptor (say it n), and get a errno ( n is busy).Because system is busy, almost at one time accept a new client, n will be reuse. Then next event of n will be (EPOLLIN|EPOLLERR|EPOLLHUP|EPOLLRDHUP).if recv it ,get a errno(Connection reset by peer(104)).

How to reuse it correctly for server ?
Topic archived. No new replies allowed.