eventmachine 1.0.9 → 1.0.9.1

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: 95a7b099599de06d369149072de07081ad2a1485
4
- data.tar.gz: 1b5f7379db7f1314b4cd8663191f60fce59466f3
3
+ metadata.gz: 9accfa9d0a6fb933ee2745b4730d685199b25a3a
4
+ data.tar.gz: de5e70e4c6422a5706a57887a497d2e3468a2b80
5
5
  SHA512:
6
- metadata.gz: 49f71fe7325e32e45a1febc789e815e64e94908b6285957180a0e26fa39ebe6ac3377eb7507da11cfdcbcd607f78ee7a3939a6a1374f998a5819f6092cd0c17d
7
- data.tar.gz: ec5fbdb8d54d186e5398b843ef6985d5b9e83c26d32483d739268765a99ae84fdd17e0809c9fda8eb36ca71c51ce4ab623eb270d64884e388669656cee19040b
6
+ metadata.gz: 9d8982740ad9880c92fcdf48b0ce0ee2b592e336c56352a17fe3b7aa6cce938ef14d213c09d7b1d9d4a85605f314ab668d726a0f50d74e80d48eaa6d4e8f040a
7
+ data.tar.gz: 67325efc4257b6b9eb1853ac562b147990b3c780d993e2b00b2163babb1bc923efa06976d209c80154f15100b2beee21b5bdbab3d623abfd18afd6de4788b1b1
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.9.1 (January 14, 2016)
4
+ * Fix EPROTO not defined on Windows [#676]
5
+ * Fix missing cast to struct sockaddr * [#671]
6
+ * Fix bug in OpenSSL path detection [#675]
7
+
3
8
  ## 1.0.9 (January 13, 2016)
4
9
  * Try more ways to detect OpenSSL [#602, #643, #661, #663, #668, #669]
5
10
  * Use WSAGetLastError in pipe.cpp same as ed.cpp [#659]
data/ext/ed.cpp CHANGED
@@ -873,7 +873,12 @@ void ConnectionDescriptor::_DispatchInboundData (const char *buffer, unsigned lo
873
873
 
874
874
  // If our SSL handshake had a problem, shut down the connection.
875
875
  if (s == -2) {
876
+ #ifdef OS_UNIX
876
877
  UnbindReasonCode = EPROTO;
878
+ #endif
879
+ #ifdef OS_WIN32
880
+ UnbindReasonCode = WSAECONNABORTED;
881
+ #endif
877
882
  ScheduleClose(false);
878
883
  return;
879
884
  }
data/ext/em.cpp CHANGED
@@ -1239,7 +1239,6 @@ const uintptr_t EventMachine_t::ConnectToServer (const char *bind_addr, int bind
1239
1239
  int e = 0;
1240
1240
 
1241
1241
  #ifdef OS_UNIX
1242
- //if (connect (sd, (sockaddr*)&pin, sizeof pin) == 0) {
1243
1242
  if (connect (sd, (struct sockaddr*)&bind_as, bind_size) == 0) {
1244
1243
  // This is a connect success, which Linux appears
1245
1244
  // never to give when the socket is nonblocking,
@@ -1319,8 +1318,7 @@ const uintptr_t EventMachine_t::ConnectToServer (const char *bind_addr, int bind
1319
1318
  #endif
1320
1319
 
1321
1320
  #ifdef OS_WIN32
1322
- //if (connect (sd, (sockaddr*)&pin, sizeof pin) == 0) {
1323
- if (connect (sd, &bind_as, bind_size) == 0) {
1321
+ if (connect (sd, (struct sockaddr*)&bind_as, bind_size) == 0) {
1324
1322
  // This is a connect success, which Windows appears
1325
1323
  // never to give when the socket is nonblocking,
1326
1324
  // even if the connection is intramachine or to
@@ -58,6 +58,7 @@ def dir_config_search(pretty_name, name, paths, &b)
58
58
  return true
59
59
  end
60
60
  end
61
+ false
61
62
  end
62
63
 
63
64
  def pkg_config_wrapper(pretty_name, name)
@@ -1,3 +1,3 @@
1
1
  module EventMachine
2
- VERSION = "1.0.9"
2
+ VERSION = "1.0.9.1"
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.0.9
4
+ version: 1.0.9.1
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-01-13 00:00:00.000000000 Z
12
+ date: 2016-01-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: test-unit