Winbindd limited by select

jra at dp.samba.org jra at dp.samba.org
Wed Feb 12 22:23:14 GMT 2003


On Thu, Feb 13, 2003 at 09:03:54AM +1100, Tim Potter wrote:
> On Wed, Feb 12, 2003 at 04:26:21PM -0500, Michael B. Allen wrote:
> 
> > > This is set at compile-time, not run-time.  This line:
> > > 
> > >  #define FD_SETSIZE 2048  /* Max # of winbindd connections */
> > > 
> > > must occur before the first invocation of <sys/types>.
> > > 
> > > This could be a build option, but it might be much simpler to hard-code
> > > it in local.h, which is what I did to fix it.
> > 
> > Better still add a check to see if the limit has been reached and return
> > an error.
> 
> Better still why not use poll() instead of select() in the winbindd
> main loop?

Because not everyone has poll() :-(. Some have poll build on select.
Some people have poll() and it doesn't work.... So many bugs, so
little time... :-).

Jeremy.


More information about the samba-technical mailing list