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>
Tue, 17 Aug 2010 12:01:41 +0000 (14:01 +0200)
commit2d88a06480645a3023f10990bb9b3a615b739605
treef7a57ff9b82876b3daa7cb4d3c18632b5d3fb751
parentae678d7c87c7783014cf4b66c7b2aa4f6077f3fd
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