eventmachine 1.2.0.dev.2 → 1.2.0

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: a994ca9df20011c3235aa182177c104b2addf877
4
- data.tar.gz: 4ed4c114fea5873f2df925b8f107be1e8dc9fc71
3
+ metadata.gz: 828cdda2160882d1b9e062245c16746dabd7a16b
4
+ data.tar.gz: f3e7a740c977bdd6820c7f406a940777af7e0275
5
5
  SHA512:
6
- metadata.gz: b563fae2d491799348769d7e8ce2f7a189600220ba60a0e4356fd1f2a73c97d24643724737cd1bb9e625e5db902233e5b1994c9c84750ec37742bffe142b15c2
7
- data.tar.gz: 1d79e3826c263467b34bc5b448d5170c48ae06b3121eff3f90913ee9dd3606364ed10adbd2a3b5170f141272db681daf9d9000976f900c85ee9006e07834380c
6
+ metadata.gz: 090f0f2ed8228c23e3cf8073bfcc5c9fc8b85c1aa895234039b535804833f491a9c16eba1bb39adc031808e755cbedba682b42d9de9c79e2f911412dadd248b8
7
+ data.tar.gz: eca6922c3982715d8113d520bb576e606aa0c856aed95fedb26010a23a6f7e7b411181ce652b98eddc32e3ba6aada26fdacb5034395ec55c57c2fa42d2287acf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.2.0 (March 15, 2016)
4
+ * Integrate work from the EventMachine-LE 1.1.x versions [#570]
5
+ * Add start_tls options :ecdh_curve, :dhparam, :fail_if_no_peer_cert [#195, #275, #399, #665]
6
+ * Add start_tls option :ssl_version for choosing SSL/TLS versions and ciphers [#359, #348, #603, #654]
7
+ * Add start_tls option :sni_hostname to be passed to TLS params [#593]
8
+ * Add method EM::Channel#num_subscribers to get the number of subscribers to a channel [#640]
9
+ * Add support for proc-sources in EM::Iterator [#639]
10
+ * Factor out method cleanup_machine to cleanup code from EM.run [#650]
11
+ * Replace Exception class with StandardError [#637]
12
+ * Close socket on close_connection even after close_connection_after_writing [#694]
13
+ * Allow reusing of datagram socket/setting bind device [#662]
14
+ * Handle deferred exceptions in reactor thread [#486]
15
+ * Reimplement Queue to avoid shift/push performance problem [#311]
16
+ * Windows: Switch from gethostbyname to getaddrinfo, support IPv6 addresses [#303, #630]
17
+ * Windows: Use rake-compiler-dock to cross-compile gems [#627]
18
+ * Windows: Add AppVeyor configuration for Windows CI testing [#578]
19
+ * Windows: Bump rake-compiler to version 0.9.x [#542]
20
+ * Fix compilation on AIX (w/ XLC) [#693]
21
+ * Fix build on OpenBSD [#690]
22
+ * Fix OpenSSL compile issue on AIX 7.1 [#678]
23
+ * Fix EventMachine.fork_reactor keeps the threadpool of the original process [#425]
24
+ * Fix to prevent event machine from stopping when a raise is done in an unbind [#327]
25
+
3
26
  ## 1.0.9.1 (January 14, 2016)
4
27
  * Fix EPROTO not defined on Windows [#676]
5
28
  * Fix missing cast to struct sockaddr * [#671]
data/ext/ed.cpp CHANGED
@@ -235,8 +235,14 @@ EventableDescriptor::ScheduleClose
235
235
 
236
236
  void EventableDescriptor::ScheduleClose (bool after_writing)
237
237
  {
238
- if (IsCloseScheduled())
238
+ if (IsCloseScheduled()) {
239
+ if (!after_writing) {
240
+ // If closing has become more urgent, then upgrade the scheduled
241
+ // after_writing close to one NOW.
242
+ bCloseNow = true;
243
+ }
239
244
  return;
245
+ }
240
246
  MyEventMachine->NumCloseScheduled++;
241
247
  // KEEP THIS SYNCHRONIZED WITH ::IsCloseScheduled.
242
248
  if (after_writing)
@@ -878,6 +884,9 @@ void ConnectionDescriptor::_DispatchInboundData (const char *buffer, unsigned lo
878
884
 
879
885
  // If our SSL handshake had a problem, shut down the connection.
880
886
  if (s == -2) {
887
+ #ifndef EPROTO // OpenBSD does not have EPROTO
888
+ #define EPROTO EINTR
889
+ #endif
881
890
  #ifdef OS_UNIX
882
891
  UnbindReasonCode = EPROTO;
883
892
  #endif
data/ext/extconf.rb CHANGED
@@ -211,7 +211,7 @@ when /linux/
211
211
  CONFIG['LDSHARED'] = "$(CXX) -shared"
212
212
 
213
213
  when /aix/
214
- CONFIG['LDSHARED'] = "$(CXX) -shared -Wl,-G -Wl,-brtl"
214
+ CONFIG['LDSHARED'] = "$(CXX) -Wl,-bstatic -Wl,-bdynamic -Wl,-G -Wl,-brtl"
215
215
 
216
216
  when /cygwin/
217
217
  # For rubies built with Cygwin, CXX may be set to CC, which is just
@@ -90,8 +90,7 @@ when /linux/
90
90
  CONFIG['LDSHARED'] = "$(CXX) -shared"
91
91
 
92
92
  when /aix/
93
- # on Unix we need a g++ link, not gcc.
94
- CONFIG['LDSHARED'] = "$(CXX) -shared -Wl,-G"
93
+ CONFIG['LDSHARED'] = "$(CXX) -Wl,-bstatic -Wl,-bdynamic -Wl,-G -Wl,-brtl"
95
94
 
96
95
  when /cygwin/
97
96
  # For rubies built with Cygwin, CXX may be set to CC, which is just
data/lib/em/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module EventMachine
2
- VERSION = "1.2.0.dev.2"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eventmachine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.dev.2
4
+ version: 1.2.0
5
5
  platform: ruby
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: 2016-02-25 00:00:00.000000000 Z
12
+ date: 2016-03-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: test-unit
@@ -281,9 +281,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
281
281
  version: '0'
282
282
  required_rubygems_version: !ruby/object:Gem::Requirement
283
283
  requirements:
284
- - - '>'
284
+ - - '>='
285
285
  - !ruby/object:Gem::Version
286
- version: 1.3.1
286
+ version: '0'
287
287
  requirements: []
288
288
  rubyforge_project:
289
289
  rubygems_version: 2.0.14