rtsp_server 0.0.6-universal-java → 0.0.7-universal-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rtsp/server.rb +5 -3
- data/lib/rtsp/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: c7039571cf22811870cc0df4ff0100c263ef1d2a
|
4
|
+
data.tar.gz: 43b80971c6845db545fea45b3dacd9a218c2102b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89409944e6204311b572d875489d25090976a734fa91acb228c1baed007bd947a068f580906428fb1c001a96f3d24cd0d74fa5a1eb4ffde4b2d7a1ac8e1f47ae
|
7
|
+
data.tar.gz: 443298f0d4265c9b4199cc252939c25d0200122c2e6d5e9197937f8e3876bfcf8a3f234c77a2b393b344813e84534e550157dbc6b34cd6b55363b9095ee68591
|
data/lib/rtsp/server.rb
CHANGED
@@ -90,11 +90,12 @@ module RTSP
|
|
90
90
|
|
91
91
|
begin
|
92
92
|
request_str << io.read_nonblock(500)
|
93
|
-
rescue IO::WaitReadable
|
93
|
+
rescue IO::WaitReadable, EOFError => ex
|
94
|
+
return(-1) if ex.is_a?(EOFError)
|
94
95
|
count += 1
|
95
96
|
sleep 0.001
|
96
|
-
|
97
|
-
|
97
|
+
sleep 1 if count > 10
|
98
|
+
count = 0 unless request_str == ""
|
98
99
|
retry if count < 50
|
99
100
|
return -1 if request_str == ""
|
100
101
|
end
|
@@ -106,6 +107,7 @@ module RTSP
|
|
106
107
|
end
|
107
108
|
|
108
109
|
io.send(responses.join, 0)
|
110
|
+
return(-1) if request_str.include?("TEARDOWN")
|
109
111
|
end
|
110
112
|
|
111
113
|
# Process an RTSP request
|
data/lib/rtsp/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtsp_server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: universal-java
|
6
6
|
authors:
|
7
7
|
- Steve Loveless, Mike Kirby
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-01-
|
12
|
+
date: 2014-01-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: parslet
|