s3: Avoid a winbind 100% cpu loop
authorVolker Lendecke <vl@samba.org>
Tue, 18 Oct 2011 19:36:44 +0000 (21:36 +0200)
committerVolker Lendecke <vlendec@samba.org>
Tue, 18 Oct 2011 23:39:35 +0000 (01:39 +0200)
commitfbf17489844a5cfc6d1da8c431ce0194ed4c3f72
tree93f61ac4ca3ab0f0d9507b50f4ac83d88e2d784d
parent8d54bdb5e199b2198990ee8d572662a128506337
s3: Avoid a winbind 100% cpu loop

When a DC goes down hard, winbind can end up in a 100% CPU loop. The next
(small) RPC request to the DC ends up as a trans2 request. If the connection
goes down, we end up trying to discard the request via the loop in
cli_state_notify_pending(). Because this is a trans2 request,
cli_smb_req_unset_pending will not kick in. Thus the pending array will always
remain at length 1.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Oct 19 01:39:35 CEST 2011 on sn-devel-104
source3/libsmb/async_smb.c