Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
f09fd1e7
Commit
f09fd1e7
authored
Nov 02, 1995
by
Per Cederqvist
Browse files
(async_rejected_connection): Send this message at most once per
minute.
parent
d80d526f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/send-async.c
View file @
f09fd1e7
/*
* $Id: send-async.c,v 0.1
2
199
4
/1
2/31 11:59:28
ceder Exp $
* $Id: send-async.c,v 0.1
3
199
5
/1
1/02 20:43:07
ceder Exp $
* Copyright (C) 1991, 1993, 1994 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -28,7 +28,7 @@
* Written by Per Cederqvist 1990-07-22--23
*/
static
char
*
rcsid
=
"$Id: send-async.c,v 0.1
2
199
4
/1
2/31 11:59:28
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: send-async.c,v 0.1
3
199
5
/1
1/02 20:43:07
ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
...
...
@@ -51,7 +51,7 @@ USE(rcsid);
#include "lyskomd.h"
#include "log.h"
#include "param.h"
#include "ldifftime.h"
void
async_new_text
(
struct
connection
*
cptr
,
...
...
@@ -280,10 +280,18 @@ async_rejected_connection(void)
{
Connection
*
cptr
;
Session_no
i
=
0
;
static
time_t
last_time
=
0
;
time_t
curr_time
;
if
(
!
param
.
send_async_messages
)
return
;
time
(
&
curr_time
);
if
(
last_time
!=
0
&&
ldifftime
(
curr_time
,
last_time
)
<
60
)
return
;
last_time
=
curr_time
;
while
(
(
i
=
traverse_connections
(
i
))
!=
0
)
{
cptr
=
get_conn_by_number
(
i
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment