diff options
author | Jeremy Allison <jra@samba.org> | 2003-01-30 23:55:13 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-01-30 23:55:13 +0000 |
commit | b102e79e751ad2d658d0681061b6d56f1027be66 (patch) | |
tree | fbdcbf383457db93e3fdb7bb73ca018b6090f9db /source3/smbd | |
parent | bcf6fae786167ad17d0c4fba5af72d509528deba (diff) | |
download | samba-b102e79e751ad2d658d0681061b6d56f1027be66.tar.gz samba-b102e79e751ad2d658d0681061b6d56f1027be66.tar.bz2 samba-b102e79e751ad2d658d0681061b6d56f1027be66.zip |
Add 3 second timeout when terminating server and sending print notify
messages. Stops build-up of large numbers of smbd's waiting to terminate
on large print throughput.
Jeremy.
(This used to be commit 4ae130bfa82be60de6a6f357f65207fcb24f45fb)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/process.c | 2 | ||||
-rw-r--r-- | source3/smbd/server.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 98ec6ce184..c002abad16 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -1228,7 +1228,7 @@ machine %s in domain %s.\n", global_myname(), lp_workgroup() )); /* Send any queued printer notify message to interested smbd's. */ - print_notify_send_messages(); + print_notify_send_messages(0); /* * Modify the select timeout depending upon diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 194f9f2300..9da431e313 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -554,7 +554,7 @@ void exit_server(const char *reason) invalidate_all_vuids(); - print_notify_send_messages(); + print_notify_send_messages(3); /* 3 second timeout. */ /* delete our entry in the connections database. */ yield_connection(NULL,""); |