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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 124fd8a0aeb32efaadaaed35e9c048e98d84957e
4
- data.tar.gz: 944dacc1f3b19127c55fae08e53e28950d2c9ced
3
+ metadata.gz: b53407fbe797bfc418bb26e51665810ee92f81fd
4
+ data.tar.gz: cd2f207622d2175b86edbf75d958048dde814be9
5
5
  SHA512:
6
- metadata.gz: fa7551a32cdcaece272f90d6b5c15c7e0cb4ac3506db47050e6b53993bef70ea5293544e6aa7156a4eccea479a89233db25021cb3f98bce7a86fb8ad6b08b4f5
7
- data.tar.gz: bff9d770e6477be8e31093ec48f984c84d3c9e3125e00e29dca7c608d0a44fc55e3dc5393dcffa3443a8e34bbe50f45eaf3ccab1763aec309964098f98707a94
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
- 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: 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-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