s3: Reduce the load on the echo handler
authorVolker Lendecke <vl@samba.org>
Thu, 12 Aug 2010 10:55:11 +0000 (12:55 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 12 Aug 2010 11:32:16 +0000 (13:32 +0200)
commitf7e14a8e5e65b15d83dc1be3fe2dc47b5c46d764
treef8c3e13ad6579a6cc861d1ba3e0c66a6be02155d
parentc672797a0a2fe3aa3bd2d2ef449cb5866d289981
s3: Reduce the load on the echo handler

If the parent is fast enough, the echo handler should not step in. When the
socket becomes readable, the echo handler goes to sleep for a second. If within
that second, the parent has picked up the SMB request from the net, the echo
handler will just go back to select().
source3/smbd/process.c