rtsp_server 0.0.6 → 0.0.7
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: b53407fbe797bfc418bb26e51665810ee92f81fd
|
4
|
+
data.tar.gz: cd2f207622d2175b86edbf75d958048dde814be9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4616d850bd09ed72d108dd24c0ea24827cf8020f1e9e5c012d03a650d5db7c8d3d9e718b2154edc4e65823431009d5c0360755b47b8911d987b9d4847185de5d
|
7
|
+
data.tar.gz: 1aaab635b4bb93eb221e648928670abfed470dd42df9da46c112ec80439618a8bc7c872e322adb1c285e925b31948ce79120a4e94feb6e0cef64eef1b87e66e3
|
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: ruby
|
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
|