Would it make sense to make that value a constant so that it has a bit more
meaning?

Darío


On 25 February 2014 11:44, Stephen von Takach <notifications@github.com>wrote:

> In lib/spider-gazelle/spider.rb:
>
> > +      # Link up the loops logger
> > +      logger.progress method(:log)
> > +
> > +      if no_ipc?
> > +        @gazelle = Gazelle.new @web, @logger, @mode
> > +        @gazelle_count = 1
> > +        start_bindings
> > +      else
> > +        # Bind the pipe for sending sockets to gazelle
> > +        begin
> > +          File.unlink DELEGATE_PIPE
> > +        rescue
> > +        end
> > +        @delegator = @web.pipe true
> > +        @delegator.bind(DELEGATE_PIPE) { @delegator.accept @accept_handler }
> > +        # TODO FIXME. Where does this 16 come from?
>
> 16 is the backlog - i.e. how may pending connections we can have pending
> before we start to drop them.
> It doesn't need to be a massive number however shouldn't be too small.
> You'd need to have more then 16 cores and a slow accept before this would
> be an issue so I chose a power of 2 that wasn't too large.
>
> These queues are only used during load and are not freed until termination.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/cotag/spider-gazelle/pull/16/files#r10032353>
> .
>