From: Volker Lendecke Date: Fri, 11 Feb 2011 10:25:13 +0000 (+0100) Subject: s3: Avoid a select call per smb X-Git-Tag: tevent-0.9.11~733 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=16229e4cefb01c3bdf1cb1cef81f0eab1f1cc0e6;p=thirdparty%2Fsamba.git s3: Avoid a select call per smb Autobuild-User: Volker Lendecke Autobuild-Date: Fri Feb 11 12:13:54 CET 2011 on sn-devel-104 --- diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 6c2908d6d54..20569d858c4 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -2263,7 +2263,7 @@ static void smbd_server_connection_read_handler( if (from_client) { smbd_lock_socket(conn); - if (!fd_is_readable(fd)) { + if (lp_async_smb_echo_handler() && !fd_is_readable(fd)) { DEBUG(10,("the echo listener was faster\n")); smbd_unlock_socket(conn); return;