rex-core 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rex/core/version.rb +1 -1
- data/lib/rex/sync/thread_safe.rb +3 -3
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe8590b94c2d83e5e579288caa8acf87f81dea6a
|
4
|
+
data.tar.gz: 7680842301f654a9dd1151f197e337e9b12d8958
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de691c345a7a435b7831e6ee800cc19ed4f8ceb785313cf2c51600e6cf8b9ecbb8d007e1f86efc04f2e80916060e44284a7c6557bb7c8e7ba4ac3708b036f8d4
|
7
|
+
data.tar.gz: c293aa280cb07dae26cf8aea992a474ff057505f1242fe7db4a341963181a639804123507029dca67f1690762280cc65e01c0471b68ba35a87141fd4c2eabb50
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rex/core/version.rb
CHANGED
data/lib/rex/sync/thread_safe.rb
CHANGED
@@ -11,7 +11,7 @@ module Rex
|
|
11
11
|
###
|
12
12
|
module ThreadSafe
|
13
13
|
|
14
|
-
|
14
|
+
DEFAULT_CYCLE = 0.2
|
15
15
|
|
16
16
|
#
|
17
17
|
# Wraps calls to select with a lower timeout period and does the
|
@@ -33,7 +33,7 @@ module ThreadSafe
|
|
33
33
|
|
34
34
|
# Poll the set supplied to us at least once.
|
35
35
|
begin
|
36
|
-
rv = ::IO.select(rfd, wfd, efd,
|
36
|
+
rv = ::IO.select(rfd, wfd, efd, [left || DEFAULT_CYCLE, DEFAULT_CYCLE].min)
|
37
37
|
rescue ::IOError, ::Errno::EBADF, ::Errno::ENOTSOCK
|
38
38
|
# If a stream was detected as being closed, re-raise the error as
|
39
39
|
# a StreamClosedError with the specific file descriptor that was
|
@@ -59,7 +59,7 @@ module ThreadSafe
|
|
59
59
|
return rv if (rv)
|
60
60
|
|
61
61
|
# Decrement the amount of time left by the polling cycle
|
62
|
-
left -=
|
62
|
+
left -= DEFAULT_CYCLE if (left)
|
63
63
|
|
64
64
|
# Keep chugging until we run out of time, if time was supplied.
|
65
65
|
end while ((left == nil) or (left > 0))
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rex-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Maloney
|
@@ -88,7 +88,7 @@ cert_chain:
|
|
88
88
|
G+Hmcg1v810agasPdoydE0RTVZgEOOMoQ07qu7JFXVWZ9ZQpHT7qJATWL/b2csFG
|
89
89
|
8mVuTXnyJOKRJA==
|
90
90
|
-----END CERTIFICATE-----
|
91
|
-
date: 2017-
|
91
|
+
date: 2017-03-30 00:00:00.000000000 Z
|
92
92
|
dependencies:
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
name: bundler
|
metadata.gz.sig
CHANGED
Binary file
|