rhack 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +1 -3
- data/ext/curb/curb_multi.c +8 -3
- data/lib/rhack/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NWNkY2FhMDI2NTg4YWMyOTNkNGRkMzJhYjc1NWFhYTU2Yzc3NzAzYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODM0MDBmYmYyNjQxY2Q1M2YzYjhmYjFmNDY2N2QzNTRkZDQxNDA1Ng==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZGEyMzYxYzY0Y2U0Y2JhZjA5NjMzNDQ1NWU3YzA5NDllNWU3NWNiODU2ZTNl
|
10
|
+
OTZmNGQ1ZWIzZTdiOTUyNGM3N2U4ZTJiMDBkMzY2MDA5N2VmNDBjNGI5NDE4
|
11
|
+
Mjk4NWM0NTE3MzViNTlkYzQ3YzE2ZTdiMzVmNjA1YWI0ZDhjZDY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODVhN2NlNDQzMzFmNzhiZGI5MDY3YWRmOTAyZWM0MDdkOTU0NjQ1MTc5ZmIw
|
14
|
+
YzcxM2M0Y2U5NTkxYWRkNGYxZDU0YTZjNTEyNmJiMjA1YjI2NjI3YmQ3NjM4
|
15
|
+
ODRmYWUzMTFiOGM1YmJlOWQzYTMwM2M3OTQyNjVkNjlmYTU1ZWM=
|
data/README.md
CHANGED
@@ -31,7 +31,7 @@ It's still randomly documented since it's just my working tool.
|
|
31
31
|
|
32
32
|
### CHANGES
|
33
33
|
|
34
|
-
##### Version 1.1.
|
34
|
+
##### Version 1.1.6
|
35
35
|
|
36
36
|
* ::Frame
|
37
37
|
* Moved `Curl.execute` from *initialize* to *on after request added*
|
@@ -39,8 +39,6 @@ It's still randomly documented since it's just my working tool.
|
|
39
39
|
|
40
40
|
* ::ScoutSquad
|
41
41
|
* Finally stabilized #next and #rand time management for parallel recursive execution
|
42
|
-
|
43
|
-
* Fixed freeing of Curl::Easy handlers in `curl_multi_free'
|
44
42
|
|
45
43
|
##### Version 1.1.3
|
46
44
|
|
data/ext/curb/curb_multi.c
CHANGED
@@ -71,8 +71,12 @@ rb_hash_clear_i(VALUE key, VALUE value, VALUE dummy) {
|
|
71
71
|
}
|
72
72
|
|
73
73
|
static void curl_multi_free(ruby_curl_multi *rbcm) {
|
74
|
-
|
75
|
-
|
74
|
+
if (rbcm) {
|
75
|
+
ruby_log((!rbcm->requests == Qnil) ? "true" : "false");
|
76
|
+
ruby_log_obj(rbcm->requests);
|
77
|
+
}
|
78
|
+
if (rbcm && !rbcm->requests == Qnil && rb_type(rbcm->requests) == T_HASH && RHASH_LEN(rbcm->requests) > 0) {
|
79
|
+
//if (rbcm && rb_type(rbcm->requests) == T_HASH && RHASH_LEN(rbcm->requests) > 0) {
|
76
80
|
rb_hash_foreach( rbcm->requests, (int (*)())curl_multi_flush_easy, (VALUE)rbcm );
|
77
81
|
rb_hash_foreach(rbcm->requests, rb_hash_clear_i, 0); //rb_hash_clear(rbcm->requests);
|
78
82
|
rbcm->requests = Qnil;
|
@@ -637,7 +641,8 @@ static void rb_curl_multi_idle_perform(VALUE self, ruby_curl_multi *rbcm) {
|
|
637
641
|
if (rc == -1)
|
638
642
|
rb_raise(rb_eRuntimeError, "select(): %s", strerror(errno));
|
639
643
|
|
640
|
-
} while (!RHASH_LEN(rbcm->requests));
|
644
|
+
//} while (!RHASH_LEN(rbcm->requests));
|
645
|
+
} while (!(RHASH_TBL(rbcm->requests)->num_entries));
|
641
646
|
|
642
647
|
#ifdef _WIN32
|
643
648
|
cleanup_crt_fd(&fdread, &crt_fdread);
|
data/lib/rhack/version.rb
CHANGED