sbsm 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +4 -0
- data/lib/sbsm/session.rb +4 -0
- data/lib/sbsm/session_store.rb +0 -4
- data/lib/sbsm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d647251dba775553fefe6121a9426dbb451d3cca
|
4
|
+
data.tar.gz: 1f856b9d6adf4c1a7744057fe0c2dc7dfc3e711c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3143714442df1fb02afe914f21e9f6046d152e65595e6c65db919c7e4b5bcce1b7d1e0ca094d3c5db0bcbf268fcc38521cc8341eb010ba54d30a01cfa306a7c9
|
7
|
+
data.tar.gz: 319e8f27fea2a105a9db1474c09bd9d3a7da3280bc5c164837ae3f8bebd453086208ac9e2a03c7dc6e78cce87096b04de779b872d28b0ad89626880e3b4a1414
|
data/History.txt
CHANGED
data/lib/sbsm/session.rb
CHANGED
@@ -52,6 +52,7 @@ module SBSM
|
|
52
52
|
SERVER_NAME = nil
|
53
53
|
UNKNOWN_USER = UnknownUser
|
54
54
|
@@mutex = Mutex.new
|
55
|
+
@@async = ThreadGroup.new
|
55
56
|
def Session.reset_stats
|
56
57
|
@@stats = {}
|
57
58
|
end
|
@@ -550,6 +551,9 @@ module SBSM
|
|
550
551
|
def []=(key, val)
|
551
552
|
@variables[key] = val
|
552
553
|
end
|
554
|
+
def async(&block)
|
555
|
+
@@async.add(Thread.new(&block))
|
556
|
+
end
|
553
557
|
private
|
554
558
|
def active_state
|
555
559
|
if(state_id = @valid_input[:state_id])
|
data/lib/sbsm/session_store.rb
CHANGED
@@ -61,7 +61,6 @@ module SBSM
|
|
61
61
|
@sessions = {}
|
62
62
|
@mutex = Mutex.new
|
63
63
|
@cleaner = run_cleaner if(self.class.const_get(:RUN_CLEANER))
|
64
|
-
@async = ThreadGroup.new
|
65
64
|
@app = app
|
66
65
|
@system = persistence_layer
|
67
66
|
@persistence_layer = persistence_layer
|
@@ -74,9 +73,6 @@ module SBSM
|
|
74
73
|
@unknown_user ||= UNKNOWN_USER
|
75
74
|
@validator = validator
|
76
75
|
end
|
77
|
-
def async(&block)
|
78
|
-
@async.add(Thread.new(&block))
|
79
|
-
end
|
80
76
|
def cap_max_sessions(now = Time.now)
|
81
77
|
if(@sessions.size > self::class::CAP_MAX_THRESHOLD)
|
82
78
|
SBSM.info "too many sessions! Keeping only #{self::class::MAX_SESSIONS}"
|
data/lib/sbsm/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sbsm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masaomi Hatakeyama, Zeno R.R. Davatz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|