The Samba-Bugzilla – Attachment 1241 Details for
Bug 2736
Winbindd idle connection close code fails under high number of lookups
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Retries up to 3 times if the winbind daemon returns NSS_STATUS_UNAVAIL
winbind.patch (text/plain), 855 bytes, created by
Jim McDonough
on 2005-05-26 11:07:54 UTC
(
hide
)
Description:
Retries up to 3 times if the winbind daemon returns NSS_STATUS_UNAVAIL
Filename:
MIME Type:
Creator:
Jim McDonough
Created:
2005-05-26 11:07:54 UTC
Size:
855 bytes
patch
obsolete
>Index: nsswitch/wb_common.c >=================================================================== >--- nsswitch/wb_common.c (revision 6991) >+++ nsswitch/wb_common.c (working copy) >@@ -588,12 +588,18 @@ > struct winbindd_request *request, > struct winbindd_response *response) > { >- NSS_STATUS status; >+ NSS_STATUS status = NSS_STATUS_UNAVAIL; >+ int count = 0; > >- status = winbindd_send_request(req_type, request); >- if (status != NSS_STATUS_SUCCESS) >- return(status); >- return winbindd_get_response(response); >+ while ((status == NSS_STATUS_UNAVAIL) && (count < 3)) { >+ status = winbindd_send_request(req_type, request); >+ if (status != NSS_STATUS_SUCCESS) >+ return(status); >+ status = winbindd_get_response(response); >+ count += 1; >+ } >+ >+ return status; > } > > /*************************************************************************
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 2736
: 1241