sockets and file open number
Asked by
Criteria
Hello
i'm in the process of creating a chat software i've created a class to semplify the socket managment, in noneblocking mode
i stuck to the max file open 1024 i changed the FD_SETSIZE to 2048 with no luck
tried ulimit -n 2048
with no luck.
i use g++ 4.x.x
after 1024 the system accept gives a message " too many open files"
when i changed FD_SETSIZE to 2048
the system hang and refuse to accept more than 1028 connection
there is one listener thread
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Criteria
- Solved:
- Last query:
- Last reply:
To post a message you must log in.