@@ 36-42 (lines=7) @@ | ||
33 | return $this; |
|
34 | } |
|
35 | ||
36 | function attach(Request $req) |
|
37 | { |
|
38 | $handle = $req->getHandle(); |
|
39 | $this->pool[(int)$handle] = $req; |
|
40 | ||
41 | curl_multi_add_handle($this->mh, $handle); |
|
42 | } |
|
43 | ||
44 | function detach(Request $req) |
|
45 | { |
|
@@ 44-50 (lines=7) @@ | ||
41 | curl_multi_add_handle($this->mh, $handle); |
|
42 | } |
|
43 | ||
44 | function detach(Request $req) |
|
45 | { |
|
46 | $handle = $req->getHandle(); |
|
47 | unset($this->pool[(int)$handle]); |
|
48 | ||
49 | curl_multi_remove_handle($this->mh, $handle); |
|
50 | } |
|
51 | ||
52 | function start() |
|
53 | { |