sensu-em 2.5.1-java → 2.5.2-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: 273e93cc6035364aa24ffd9633ac1b6c13c6e2af
4
- data.tar.gz: c6df7d46e379e426e664e97d8d2911352c9c28f5
3
+ metadata.gz: 8579e5ca5ea5ff61150d1096f3c9fb10b21f22a2
4
+ data.tar.gz: a5f8a2a818d4091c955381665faf5d469e184f30
5
5
  SHA512:
6
- metadata.gz: 0d2b99fc12bcb6bb23f0a28353baaa2aa77e938477af2466fead6e3b2d126c9a61f6e1374bfb8854f2ae231d2c3c8286bee57d6bad483f908979fc25ce078e24
7
- data.tar.gz: ccb3a6e6b0aae4baffa6d8a4cd5b2b2c5252483a8a7b744447d02a38f4e9975f1de80ad800facfd2f3dc431cbdf8af1e6a70854469f27b11e0835afd424f679d
6
+ metadata.gz: 482de9d6f632d676e33d31ef69b7ce98ccd752fc1cd6fc183969adb7e61fc5f2794f1844e2c37476cde2d5189f240d2a252a0a77ad90034246667e23bb31b6b2
7
+ data.tar.gz: cc9085d0fc0586e5b25915360ba95b8b44acb4046b9f7502166a3d35ed41143566df7064b59c0b29042ec321c2ae731cf1abbd26c25f87b60c4cd7f2409507fc
data/eventmachine.gemspec CHANGED
@@ -5,7 +5,7 @@ require "em/version"
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = 'sensu-em'
8
- s.version = '2.5.1'
8
+ s.version = '2.5.2'
9
9
  s.homepage = 'http://rubyeventmachine.com'
10
10
  s.rubyforge_project = 'eventmachine'
11
11
  s.licenses = ["Ruby", "GPL"]
@@ -128,9 +128,11 @@ public class EmReactor {
128
128
  callback.trigger(b, EventCode.EM_CONNECTION_UNBOUND, null, (long) 0);
129
129
  ec.close();
130
130
 
131
- EventableSocketChannel sc = (EventableSocketChannel) ec;
132
- if (sc != null && sc.isAttached())
133
- DetachedConnections.add (sc);
131
+ if (!(ec instanceof EventableDatagramChannel)) {
132
+ EventableSocketChannel sc = (EventableSocketChannel) ec;
133
+ if (sc != null && sc.isAttached())
134
+ DetachedConnections.add (sc);
135
+ }
134
136
  }
135
137
  }
136
138
  UnboundConnections.clear();
@@ -74,7 +74,15 @@ public class EventableDatagramChannel extends EventableChannel<DatagramPacket> {
74
74
  }
75
75
 
76
76
  public boolean scheduleClose (boolean afterWriting) {
77
- return false;
77
+ if (!afterWriting)
78
+ outboundQ.clear();
79
+
80
+ if (outboundQ.isEmpty())
81
+ return true;
82
+ else {
83
+ bCloseScheduled = true;
84
+ return false;
85
+ }
78
86
  }
79
87
 
80
88
  public void startTls() {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-em
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.1
4
+ version: 2.5.2
5
5
  platform: java
6
6
  authors:
7
7
  - Francis Cianfrocca
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-06-04 00:00:00.000000000 Z
12
+ date: 2015-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  requirement: !ruby/object:Gem::Requirement