summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-02-11 11:25:13 +0100
committerVolker Lendecke <vlendec@samba.org>2011-02-11 12:13:54 +0100
commit16229e4cefb01c3bdf1cb1cef81f0eab1f1cc0e6 (patch)
treec3220192d6d6e63360b256165c019d1ed665a233
parent90c8de54a002d2038a1382c0d147026921a64227 (diff)
downloadsamba-16229e4cefb01c3bdf1cb1cef81f0eab1f1cc0e6.tar.gz
samba-16229e4cefb01c3bdf1cb1cef81f0eab1f1cc0e6.tar.bz2
samba-16229e4cefb01c3bdf1cb1cef81f0eab1f1cc0e6.zip
s3: Avoid a select call per smb
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Feb 11 12:13:54 CET 2011 on sn-devel-104
-rw-r--r--source3/smbd/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 6c2908d6d5..20569d858c 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;