"Paul Hampson" <[EMAIL PROTECTED]> wrote:
> I seem to remember this being a long-standing TODO. Thankyou.

  Very much.

> However...

  <g> Few patches go in without "editorial comment"

> Shouldn't the loop appear after the select? That way if
> there's no pending requests in the socket buffer, we don't
> busy-wait needlessly when an io-wait would suffice.

  Or, use a shared semaphore.  The threads do sem_post() when they're
free to process a request, and the select() loop does sem_wait(),
before doing select() on the socket.

  That's probably the simplest way to do it, and avoids the problems
with busy loops.

> It prolly shouldn't be an L_ERR either... That seems too
> severe for something that loops every 1000us.

  Absolutely.

  Alan DeKok.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to