Skip to content
Browse files

Fix spurious BUSYBEE_TIMEOUTs.

By default, no timeout is set, and threads will wait within BusyBee forever.
The one place that BUSYBEE_TIMEOUT was returned did not take into consideration
whether a timeout was set or not.  Now it will only return BUSYBEE_TIMEOUT if
the user does indeed set a timeout.
  • Loading branch information...
1 parent fa8092d commit 61a633f95fed44c0bd75cae3b3a9df7011706c31 @rescrv committed May 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 busybee.cc
View
2 busybee.cc
@@ -581,7 +581,7 @@ CLASSNAME :: recv(po6::net::location* from,
return BUSYBEE_POLLFAILED;
}
- if (status >= 0 && errno == EINTR)
+ if (status >= 0 && errno == EINTR && m_timeout >= 0)
{
return BUSYBEE_TIMEOUT;
}

0 comments on commit 61a633f

Please sign in to comment.
Something went wrong with that request. Please try again.