Bruno Corsi dos Santos <[EMAIL PROTECTED]> writes:

> Other doubt is about the use of select syscall to wait
> for data at the sockets. I know that select syscall
> fails when the number of file descriptors in the
> process application exceeds 1024. I didn't checked it
> yet in carob, but I've already this problem with other
> libraries.

Is this a fd_set / FD_SETSIZE bitmask issue ? Isn't an old and
disappearing limitation of some legacy libcs ?


> So, I think we would make available a
> compilation using epoll syscall instead of select
> syscall to avoid this problem.

This first carob implementation is using select() for portability
reasons. Since the semantics are not too different, we could imagine
some #ifdef USING_POLL -> poll() implementation if it does not clutter
too much the code.

However epoll looks totally different and very linux-specific/
non-portable, right? What would be the benefit of using it?

Thanks for your feedback.


Marc.



_______________________________________________
Carob mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob

Reply via email to