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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd2d5c99eddc854cd00f3ca817f21529050cbaf7
4
- data.tar.gz: 58fee6187fa1e578745723518ea2e0374b063d07
3
+ metadata.gz: c7039571cf22811870cc0df4ff0100c263ef1d2a
4
+ data.tar.gz: 43b80971c6845db545fea45b3dacd9a218c2102b
5
5
  SHA512:
6
- metadata.gz: 301618d21974506325f60cd897ef5517fe2fa246d23e730c372055b897d014155481739458a13fcc7d4ab874866d8d2e45378734656498acd7a7afdbb3967079
7
- data.tar.gz: 1a7d5cf9fdd8d644132ea64aa2aa63d58ef26bbf9427a82f98f6b7190e85851d360864b0a8c0c64420a7663471f39145d51c4395e674dc3579d677d5c37fae45
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
- sleep 1 if count > 10
97
- count = 0 unless request_str == ""
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
@@ -1,4 +1,4 @@
1
1
  module RTSP
2
2
  # rtsp version
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
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.6
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-16 00:00:00.000000000 Z
12
+ date: 2014-01-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: parslet