Gitlab Community Edition Instance
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cdstar
cdstar
Commits
3c29fc27
Commit
3c29fc27
authored
Nov 25, 2019
by
mhellka
Browse files
Fix: Expired sessions were not closed.
parent
fb4ba5eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
cdstar-runtime/src/main/java/de/gwdg/cdstar/runtime/services/SessionRegistry.java
View file @
3c29fc27
...
...
@@ -29,7 +29,9 @@ public class SessionRegistry implements SessionStartListener, SessionListener, R
@Override
public
void
onStartup
(
RuntimeContext
ctx
)
throws
Exception
{
sessionReaper
=
ctx
.
lookupRequired
(
CronService
.
class
).
schedule
(
this
::
reapExpiredSessions
,
10
,
TimeUnit
.
SECONDS
);
sessionReaper
=
ctx
.
lookupRequired
(
CronService
.
class
).
scheduleWithFixedDelay
(
this
::
reapExpiredSessions
,
60
,
10
,
TimeUnit
.
SECONDS
);
ctx
.
lookup
(
MetricRegistry
.
class
).
ifPresent
(
mr
->
{
mr
.
gauge
(
"sess.open"
,
()
->
()
->
allSessions
.
size
());
mr
.
gauge
(
"sess.open.ro"
,
()
->
()
->
allSessions
.
values
().
stream
()
...
...
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