The Samba-Bugzilla – Attachment 2351 Details for
Bug 3204
winbindd: Exceeding 200 client connections, no idle connection found
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch.
look (text/plain), 1.73 KB, created by
Jeremy Allison
on 2007-03-28 18:05:12 UTC
(
hide
)
Description:
Proposed patch.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2007-03-28 18:05:12 UTC
Size:
1.73 KB
patch
obsolete
>Index: nsswitch/winbindd.c >=================================================================== >--- nsswitch/winbindd.c (revision 22003) >+++ nsswitch/winbindd.c (working copy) >@@ -121,6 +121,8 @@ > { > pstring path; > >+ close_winbindd_socket(); >+ > /* Remove socket file */ > pstr_sprintf(path, "%s/%s", > WINBINDD_SOCKET_DIR, WINBINDD_SOCKET_NAME); >@@ -718,23 +720,14 @@ > simultaneous connections while remaining impervious to many denial of > service attacks. */ > >-static void process_loop(void) >+static void process_loop(int listen_sock, int listen_priv_sock) > { > struct winbindd_cli_state *state; > struct fd_event *ev; > fd_set r_fds, w_fds; >- int maxfd, listen_sock, listen_priv_sock, selret; >+ int maxfd, selret; > struct timeval timeout, ev_timeout; > >- /* Open Sockets here to get stuff going ASAP */ >- listen_sock = open_winbindd_socket(); >- listen_priv_sock = open_winbindd_priv_socket(); >- >- if (listen_sock == -1 || listen_priv_sock == -1) { >- perror("open_winbind_socket"); >- exit(1); >- } >- > /* We'll be doing this a lot */ > > /* Handle messages */ >@@ -924,6 +917,8 @@ > }; > poptContext pc; > int opt; >+ int listen_sock; >+ int listen_priv_sock; > > /* glibc (?) likes to print "User defined signal 1" and exit if a > SIGUSR[12] is received before a handler is installed */ >@@ -1087,10 +1082,19 @@ > smb_nscd_flush_user_cache(); > smb_nscd_flush_group_cache(); > >+ /* Open Sockets here to get stuff going ASAP */ >+ listen_sock = open_winbindd_socket(); >+ listen_priv_sock = open_winbindd_priv_socket(); >+ >+ if (listen_sock == -1 || listen_priv_sock == -1) { >+ perror("open_winbind_socket"); >+ exit(1); >+ } >+ > /* Loop waiting for requests */ > > while (1) >- process_loop(); >+ process_loop(listen_sock, listen_priv_sock); > > return 0; > }
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 3204
:
2351
|
2353
|
2355
|
2747
|
10127
|
10128
|
10160