hiredis-client 0.15.0 → 0.17.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f00ae853d9b2f85a0031597d6fefbeb1cd6eab72b38df20fd37a4810fcba84f
|
4
|
+
data.tar.gz: b55245f4e437e6cc807d41d900fb9752e3b57f45378d6f349c62ad67e0cbf6e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1770093cc22605990b73fecda7bbb6bacac109a2cc340d7cbd42b9c10efae98b726ac62162601ea9aa456ac1beb705dafdf00f94d5f5259ae4a9cf7e329555ca
|
7
|
+
data.tar.gz: cefe26240fde162df9a530178f89dce344e106d55057647a42c3accaaac7d8e028e0a52ac112bbdfcaeba221d6c31e7a5a73fef5d913fb9baf93f08fc128350f
|
@@ -36,8 +36,6 @@
|
|
36
36
|
#include <errno.h>
|
37
37
|
#include <sys/socket.h>
|
38
38
|
#include <stdbool.h>
|
39
|
-
#include <unistd.h>
|
40
|
-
#include <fcntl.h>
|
41
39
|
#include "hiredis.h"
|
42
40
|
#include "net.h"
|
43
41
|
#include "hiredis_ssl.h"
|
@@ -800,33 +798,6 @@ static VALUE hiredis_close(VALUE self) {
|
|
800
798
|
return Qnil;
|
801
799
|
}
|
802
800
|
|
803
|
-
static VALUE hiredis_reopen(VALUE self) {
|
804
|
-
CONNECTION(self, connection);
|
805
|
-
if (!connection->context) {
|
806
|
-
return Qfalse;
|
807
|
-
}
|
808
|
-
|
809
|
-
if (connection->context->fd == REDIS_INVALID_FD) {
|
810
|
-
return Qfalse;
|
811
|
-
}
|
812
|
-
|
813
|
-
int null_fd = open("/dev/null", O_RDWR | O_CLOEXEC);
|
814
|
-
if (null_fd <= 0) {
|
815
|
-
return Qfalse;
|
816
|
-
}
|
817
|
-
|
818
|
-
int rc = dup2(null_fd, connection->context->fd);
|
819
|
-
if (close(null_fd) < 0) {
|
820
|
-
return Qfalse;
|
821
|
-
}
|
822
|
-
|
823
|
-
if (rc < 0) {
|
824
|
-
return Qfalse;
|
825
|
-
}
|
826
|
-
|
827
|
-
return Qtrue;
|
828
|
-
}
|
829
|
-
|
830
801
|
static inline double diff_timespec_ms(const struct timespec *time1, const struct timespec *time0) {
|
831
802
|
return ((time1->tv_sec - time0->tv_sec) * 1000.0)
|
832
803
|
+ (time1->tv_nsec - time0->tv_nsec) / 1000000.0;
|
@@ -960,7 +931,6 @@ RUBY_FUNC_EXPORTED void Init_hiredis_connection(void) {
|
|
960
931
|
rb_define_private_method(rb_cHiredisConnection, "_read", hiredis_read, 0);
|
961
932
|
rb_define_private_method(rb_cHiredisConnection, "flush", hiredis_flush, 0);
|
962
933
|
rb_define_private_method(rb_cHiredisConnection, "_close", hiredis_close, 0);
|
963
|
-
rb_define_private_method(rb_cHiredisConnection, "_reopen", hiredis_reopen, 0);
|
964
934
|
rb_define_method(rb_cHiredisConnection, "measure_round_trip_delay", hiredis_measure_round_trip_delay, 0);
|
965
935
|
|
966
936
|
VALUE rb_cHiredisSSLContext = rb_define_class_under(rb_cHiredisConnection, "SSLContext", rb_cObject);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hiredis-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean Boussier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis-client
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.17.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.17.0
|
27
27
|
description:
|
28
28
|
email:
|
29
29
|
- jean.boussier@gmail.com
|
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
|
-
rubygems_version: 3.
|
108
|
+
rubygems_version: 3.4.10
|
109
109
|
signing_key:
|
110
110
|
specification_version: 4
|
111
111
|
summary: Hiredis binding for redis-client
|