ffwd 0.3.2 → 0.3.3

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: 6d850237d48bc73fc672879733f62624817afd62
4
- data.tar.gz: 3e7c09ff7f9b9b14a0a24fdc72ec90e85ba6b9fb
3
+ metadata.gz: 688152de789b03635d79a5810a60503a8afb9d2a
4
+ data.tar.gz: 6b0f17db915c40e207ebc4383ca99a042d5c2cdd
5
5
  SHA512:
6
- metadata.gz: 1df233cd2e0736821c217d940d0d5fe21ad58566a8c954c447188b068fb078d755b15cf7ffdccd1bedf918b945f6fa2755985d7c2e05fae972b332729334fd10
7
- data.tar.gz: a61015db5b058fa38bc12639a855e7cab51ec2c0d8f610fc5185db2a882aa6a058856814dd9a837d742f0a5f310d0dc557452d5df5e657575fd577a7985c9337
6
+ metadata.gz: 3aea5e26a7aa41c9921990fcc483ce5b847ac542ff4b08c5589df728df8072678ab4a9a894303a46f2d9989a1261186cc6ba79621c90c3e70d1142848d4fe465
7
+ data.tar.gz: b166a225af6c9409103b3381ffcdfdb942c549cced81e0f99519827db81df85e0e4e13bb81cdcd086d6680b1e34d03e4961646de5372fa8857f3ce8e8ce54935
@@ -58,7 +58,6 @@ module FFWD::UDP
58
58
 
59
59
  if size = config[:receive_buffer_size]
60
60
  log.debug "Setting receive buffer size to #{size}"
61
- @socket.set_sock_opt Socket::SOL_SOCKET, Socket::SO_RCVBUFFORCE, true
62
61
  @socket.set_sock_opt Socket::SOL_SOCKET, Socket::SO_RCVBUF, size
63
62
  end
64
63
 
@@ -68,6 +67,11 @@ module FFWD::UDP
68
67
 
69
68
  r.error do |a, t, e|
70
69
  log.warning "Bind on #{info} failed, retry ##{a} in #{t}s: #{e}"
70
+
71
+ if @socket
72
+ @socket.close
73
+ @socket = nil
74
+ end
71
75
  end
72
76
 
73
77
  r.depend_on core
@@ -14,5 +14,5 @@
14
14
  # the License.
15
15
 
16
16
  module FFWD
17
- VERSION = "0.3.2"
17
+ VERSION = "0.3.3"
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffwd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John-John Tedro
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-10-28 00:00:00.000000000 Z
12
+ date: 2014-11-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine