plezi 0.10.9 → 0.10.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/plezi/handlers/controller_core.rb +1 -1
- data/lib/plezi/version.rb +1 -1
- data/test/plezi_tests.rb +18 -2
- 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: 51cbaa19856511e83dc4eec44e82573be9e4a539
|
4
|
+
data.tar.gz: 45a11c946dd7f1c2a86a999bc1586cedf3cc00b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88a265ccda32792f53ab5d517d4ad1c245b3672e99e1e94ea588536d8b090783ad563d742d3da6974ab81ece05f18142e57d6bffd615ccab7d4a4de7bb608686
|
7
|
+
data.tar.gz: 7b41e62df43c66263c4f771df4f209d8d8545f647006191b2d547b262ea4f4bcf8897b64ac3be5f8881b62ea784ab2de498f8779d1009ddca307a6cb6e596a36
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
|
3
3
|
***
|
4
4
|
|
5
|
+
Change log v.0.10.10
|
6
|
+
|
7
|
+
**Fix**: Autopinging wasn't senf doe to a typo (`unless` instead of `if`).. this is now fixed. Autopinging will keep your Websocket connections alive.
|
8
|
+
|
9
|
+
***
|
10
|
+
|
5
11
|
Change log v.0.10.9
|
6
12
|
|
7
13
|
**Minor**: minor update to the cache system, might improve performance somewhat and might fix rare issues related to some binary files. Updated GRHttp server version required.
|
@@ -43,7 +43,7 @@ module Plezi
|
|
43
43
|
def on_open ws
|
44
44
|
# set broadcasts and return true
|
45
45
|
@response = ws
|
46
|
-
ws.
|
46
|
+
ws.autoping Plezi::Settings.autoping if Plezi::Settings.autoping
|
47
47
|
# create the redis connection (in case this in the first instance of this class)
|
48
48
|
Plezi.redis_connection
|
49
49
|
super() if defined?(super)
|
data/lib/plezi/version.rb
CHANGED
data/test/plezi_tests.rb
CHANGED
@@ -3,6 +3,7 @@ lib = File.expand_path('../lib', __FILE__)
|
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
4
|
require 'open-uri'
|
5
5
|
require 'plezi'
|
6
|
+
require 'objspace'
|
6
7
|
|
7
8
|
def report_before_filter(result= true)
|
8
9
|
return true if $before_tested
|
@@ -326,6 +327,7 @@ module PleziTestTasks
|
|
326
327
|
str = 'a'
|
327
328
|
time_now = Time.now
|
328
329
|
8.times {|i| str = str * 2**i;puts " * Websocket message size test: sending #{str.bytesize} bytes"; ws << str; }
|
330
|
+
str.clear
|
329
331
|
to_sleep = (Time.now - time_now)*2 + 1
|
330
332
|
puts "will now sleep for #{to_sleep} seconds, waiting allowing the server to respond"
|
331
333
|
sleep to_sleep rescue true
|
@@ -385,8 +387,6 @@ class PlaceboCtrl
|
|
385
387
|
end
|
386
388
|
end
|
387
389
|
end
|
388
|
-
r = Plezi::Placebo.new PlaceboCtrl
|
389
|
-
puts " * Create Placebo test: #{PleziTestTasks::RESULTS[r && true]}"
|
390
390
|
|
391
391
|
PL.create_logger nil
|
392
392
|
# PL::Settings.max_threads = 4
|
@@ -405,6 +405,22 @@ shared_route '/some/:multi{path|another_path}/(:option){route|test}/(:id)/(:opti
|
|
405
405
|
shared_route '/', TestCtrl
|
406
406
|
|
407
407
|
|
408
|
+
mem_print_proc = Proc.new do
|
409
|
+
h = GC.stat.merge ObjectSpace.count_objects_size
|
410
|
+
ObjectSpace.each_object {|o| h[o.class] = h[o.class].to_i + 1}
|
411
|
+
puts (h.to_a.map {|i| i.join ': '} .join "\n")
|
412
|
+
h.clear
|
413
|
+
GC.start
|
414
|
+
end
|
415
|
+
# puts ("\n\n*** GC.stat:\n" + ((GC.stat.merge ObjectSpace.count_objects_size).to_a.map {|i| i.join ': '} .join "\n"))
|
416
|
+
# mem_print_proc.call
|
417
|
+
# GR.run_every 30, &mem_print_proc
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
r = Plezi::Placebo.new PlaceboCtrl
|
422
|
+
puts " * Create Placebo test: #{PleziTestTasks::RESULTS[r && true]}"
|
423
|
+
|
408
424
|
Plezi.start_async
|
409
425
|
puts " --- Plezi will ran async, performing some tests that than hang"
|
410
426
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plezi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boaz Segev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grhttp
|