Subversion Repositories Web Services

Compare Revisions

Ignore whitespace Rev 119394 → Rev 119598

/OpenSearch/tags/4.5/NEWS.html
1,4 → 1,7
<pre>
4.5 patch 29
bug #21534: Handling curl-bug by used new curl handle for multi-curl-calls
 
4.5 patch 28
====
Records from a deleted library which are still searchable, produced an empty record and make openFormat fails. Added
/OpenSearch/tags/4.5/server.php
2135,6 → 2135,8
* @retval array
*/
private function read_record_repo_all_urls($urls) {
$curl = new curl();
$curl->set_option(CURLOPT_TIMEOUT, self::value_or_default($this->config->get_value('curl_timeout', 'setup'), 20));
$ret = array();
if (empty($urls)) $urls = array();
$res_map = array_keys($urls);
2148,16 → 2150,16
else {
$this->number_of_record_repo_calls++;
$last_no = $no;
$this->curl->set_url($uri, $no);
$curl->set_url($uri, $no);
}
$no++;
}
if (isset($last_no)) {
$this->watch->start('record_repo');
$recs = $this->curl->get();
$status = $this->curl->get_status();
$recs = $curl->get();
$status = $curl->get_status();
$this->watch->stop('record_repo');
$this->curl->close();
$curl->close();
if (!is_array($recs)) {
$recs = array($last_no => $recs);
$status = array($last_no => $status);