X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Fconnection.c;h=493d19deee9905a352880c8edfb3b4b4ed18176a;hb=5debc3f1f692c1ebafc04fe5603ef51611ec10e5;hp=979f739711917d68ce7fcafa5fdcedf09182dc29;hpb=f7247294488509fca6dc8e0d32f63cd8ae51b555;p=pazpar2-moved-to-github.git diff --git a/src/connection.c b/src/connection.c index 979f739..493d19d 100644 --- a/src/connection.c +++ b/src/connection.c @@ -42,12 +42,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #include #include "connection.h" -#include "eventl.h" #include "pazpar2.h" #include "host.h" #include "client.h" #include "settings.h" -#include "parameters.h" /** \brief Represents a physical, reusable connection to a remote Z39.50 host @@ -400,8 +398,6 @@ static int connection_connect(struct connection *con) /* this fragment is bad DRY: from client_prep_connection */ client_set_state(con->client, Client_Connecting); ZOOM_options_destroy(zoptions); - // This creates the connection - ZOOM_connection_process(link); return 0; } @@ -423,6 +419,9 @@ int client_prep_connection(struct client *cl, if (zproxy && zproxy[0] == '\0') zproxy = 0; + if (!host) + return 0; + co = client_get_connection(cl); yaz_log(YLOG_DEBUG, "Client prep %s", client_get_url(cl));