projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove client_fatal. connection_destroy is static
[pazpar2-moved-to-github.git]
/
src
/
connection.c
diff --git
a/src/connection.c
b/src/connection.c
index
f17e5da
..
5b4a127
100644
(file)
--- a/
src/connection.c
+++ b/
src/connection.c
@@
-106,7
+106,7
@@
static void remove_connection_from_host(struct connection *con)
}
// Close connection and recycle structure
}
// Close connection and recycle structure
-void connection_destroy(struct connection *co)
+static void connection_destroy(struct connection *co)
{
if (co->link)
{
{
if (co->link)
{
@@
-256,7
+256,9
@@
static void connection_handler(IOCHAN iochan, int event)
if (co->state == Conn_Connecting)
{
yaz_log(YLOG_WARN, "connect timeout %s", client_get_url(cl));
if (co->state == Conn_Connecting)
{
yaz_log(YLOG_WARN, "connect timeout %s", client_get_url(cl));
- client_fatal(cl);
+
+ connection_destroy(co);
+ client_set_state(cl, Client_Error);
}
else if (client_get_state(co->client) == Client_Idle)
{
}
else if (client_get_state(co->client) == Client_Idle)
{