Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lyskom-server-ceder-1616-generations-topgit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
f7e2e4e7
Commit
f7e2e4e7
authored
33 years ago
by
Per Cederqvist
Browse files
Options
Downloads
Patches
Plain Diff
dump_allocated_connections now also writes no_of_connection_attempts.
parent
914f9c64
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/server/ChangeLog
+4
-0
4 additions, 0 deletions
src/server/ChangeLog
src/server/internal-connections.c
+6
-4
6 additions, 4 deletions
src/server/internal-connections.c
with
10 additions
and
4 deletions
src/server/ChangeLog
+
4
−
0
View file @
f7e2e4e7
Tue Oct 29 03:52:34 1991 Per Cederqvist (ceder at robert)
* internal-connections.c (no_of_connection_attempts): Now a global
variable, so that dump_allocated_connections can write it to the
log files.
* ramkomd.c (dump_exit_statistics): This function, which is only
run when the server is brought down nicely, writes some
statistics to a log file. The log file is now open in append
...
...
This diff is collapsed.
Click to expand it.
src/server/internal-connections.c
+
6
−
4
View file @
f7e2e4e7
/*
* $Id: internal-connections.c,v 0.
5
1991/
09/15 10:32:03 linus
Exp $
* $Id: internal-connections.c,v 0.
6
1991/
10/29 03:16:56 ceder
Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -28,7 +28,7 @@
* Abstract routines on the data type Connection.
*/
static
char
*
rcsid
=
"$Id: internal-connections.c,v 0.
5
1991/
09/15 10:32:03 linus
Exp $"
;
static
char
*
rcsid
=
"$Id: internal-connections.c,v 0.
6
1991/
10/29 03:16:56 ceder
Exp $"
;
#include
"exp.h"
...
...
@@ -42,6 +42,7 @@ static char *rcsid = "$Id: internal-connections.c,v 0.5 1991/09/15 10:32:03 linu
#include
"log.h"
INTERNAL
Connection
*
all_connections
=
NULL
;
INTERNAL
Session_no
no_of_connection_attempts
=
0
;
/* Used in get_conn_by_number to speed things up. */
...
...
@@ -74,7 +75,6 @@ EXPORT Connection *
new_client
(
void
)
{
Connection
*
c
;
static
Session_no
no_of_connection_attempts
=
0
;
c
=
alloc_connection
();
...
...
@@ -96,7 +96,7 @@ new_client(void)
all_connections
=
c
;
c
->
session_no
=
++
no_of_connection_attempts
;
c
->
protocol
=
'\0'
;
/* Reserved to mean 'no protocol specified yet' */
c
->
protocol
=
'\0'
;
/* Reserved to mean 'no protocol specified yet' */
c
->
unparsed
=
EMPTY_STRING
;
c
->
first_to_parse
=
0
;
c
->
more_to_parse
=
TRUE
;
...
...
@@ -260,4 +260,6 @@ dump_allocated_connections(FILE *fp)
{
fprintf
(
fp
,
"---"
__FILE__
":
\n\t
Connections: %d
\n
"
,
no_of_allocated_connections
);
fprintf
(
fp
,
"
\t
Connection attempts: %d
\n
"
,
no_of_connection_attempts
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment