summaryrefslogtreecommitdiff
path: root/source3/smbd/process.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-03-18 11:24:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:41 -0500
commitc0e37a74963ae942ed48431bd2ea353ebad256ff (patch)
treea666b7e2b9eb57e1b52cb668d538f7bb1b9c288c /source3/smbd/process.c
parent7c2bc9c07083e7035028cf22e97e0c31b3e9d6a5 (diff)
downloadsamba-c0e37a74963ae942ed48431bd2ea353ebad256ff.tar.gz
samba-c0e37a74963ae942ed48431bd2ea353ebad256ff.tar.bz2
samba-c0e37a74963ae942ed48431bd2ea353ebad256ff.zip
r21870: Move sending auth_server keepalives out of the main loop into an idle event.
Volker (This used to be commit 6226b30f38cd82531422815ba66a687aab50028d)
Diffstat (limited to 'source3/smbd/process.c')
-rw-r--r--source3/smbd/process.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 5edb2c1009..76af8f2054 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -1328,7 +1328,6 @@ void check_reload(time_t t)
static BOOL timeout_processing(int *select_timeout,
time_t *last_timeout_processing_time)
{
- static time_t last_keepalive_sent_time = 0;
static time_t last_idle_closed_check = 0;
time_t t;
BOOL allidle = True;
@@ -1351,9 +1350,6 @@ static BOOL timeout_processing(int *select_timeout,
*last_timeout_processing_time = t = time(NULL);
- if(last_keepalive_sent_time == 0)
- last_keepalive_sent_time = t;
-
if(last_idle_closed_check == 0)
last_idle_closed_check = t;
@@ -1371,20 +1367,6 @@ static BOOL timeout_processing(int *select_timeout,
last_idle_closed_check = t;
}
- if (lp_keepalive() && (t - last_keepalive_sent_time)> lp_keepalive()) {
- /* send a keepalive for a password server or the like.
- This is attached to the auth_info created in the
- negprot */
- if (negprot_global_auth_context && negprot_global_auth_context->challenge_set_method
- && negprot_global_auth_context->challenge_set_method->send_keepalive) {
-
- negprot_global_auth_context->challenge_set_method->send_keepalive
- (&negprot_global_auth_context->challenge_set_method->private_data);
- }
-
- last_keepalive_sent_time = t;
- }
-
/* check for connection timeouts */
allidle = conn_idle_all(t);