svn commit: samba r7025 - in branches/SAMBA_3_0/source: lib tdb

Jeremy Allison jra at samba.org
Fri May 27 19:44:28 GMT 2005


On Fri, May 27, 2005 at 03:41:04PM -0400, derrell at samba.org wrote:
> 
> The more I think about it, the more I believe that something based on my
> original implementation is the right way to do it.  If EAGAIN is returned,
> we're just going to spin in a loop dragging down the CPU and we should really
> be calling select() to await data.  Calling read_socket_with_timeout() could
> be done from read_socket_data() as well, in a fashion similar to what I had
> done originally.

No, this is the wrong layer to call that. It's the functions that call
read_socket_data() that need changing. See my other email.

Jeremy.


More information about the samba-technical mailing list