projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbcac59
)
Avoid host reuse if proxy changes
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 4 Sep 2012 11:19:26 +0000
(13:19 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 4 Sep 2012 11:19:26 +0000
(13:19 +0200)
src/host.c
patch
|
blob
|
history
diff --git
a/src/host.c
b/src/host.c
index
25fd04a
..
7af0c07
100644
(file)
--- a/
src/host.c
+++ b/
src/host.c
@@
-99,7
+99,12
@@
struct host *find_host(database_hosts_t hosts, const char *url,
yaz_mutex_enter(hosts->mutex);
for (p = hosts->hosts; p; p = p->next)
if (!strcmp(p->url, url))
- break;
+ {
+ if (p->proxy && proxy && !strcmp(p->proxy, proxy))
+ break;
+ if (!p->proxy && !proxy)
+ break;
+ }
if (!p)
{
p = create_host(url, proxy, port, iochan_man);