| @@ 637-646 (lines=10) @@ | ||
| 634 | // add the query in spool |
|
| 635 | $this->_spool[] = &$query; |
|
| 636 | ||
| 637 | if ($query['Callback'] == null) { |
|
| 638 | $this->_wait = true; |
|
| 639 | $this->_open($query['OpenTimeout'], $query['WaitTimeout']); // wait more in not callback mode |
|
| 640 | $this->_spool = array(); |
|
| 641 | $this->_wait = false; |
|
| 642 | ||
| 643 | return $query['Response']; |
|
| 644 | } else { |
|
| 645 | $this->_open(); |
|
| 646 | } |
|
| 647 | } else { |
|
| 648 | $msg = "GET ".$query['Path']." HTTP/1.1\r\n"; |
|
| 649 | $msg .= "Host: ".$this->_host."\r\n"; |
|
| @@ 672-681 (lines=10) @@ | ||
| 669 | // add the query in spool |
|
| 670 | $this->_spool[] = &$query; |
|
| 671 | ||
| 672 | if ($query['Callback'] == null) { |
|
| 673 | $this->_wait = true; |
|
| 674 | $this->_open($query['OpenTimeout'], $query['WaitTimeout']); // wait more in not callback mode |
|
| 675 | $this->_spool = array(); |
|
| 676 | $this->_wait = false; |
|
| 677 | ||
| 678 | return $query['Response']; |
|
| 679 | } else { |
|
| 680 | $this->_open(); |
|
| 681 | } |
|
| 682 | } |
|
| 683 | ||
| 684 | } else { |
|