From: Adam Dickmeiss Date: Fri, 4 Feb 2005 13:28:47 +0000 (+0000) Subject: Fixed problem with connect on Unix domain sockets that returned X-Git-Tag: YAZ.2.0.34~12 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=85e3c8107b667d8c0701dc26974fbb3b17b74a4f;p=yaz-moved-to-github.git Fixed problem with connect on Unix domain sockets that returned errno=EAGAIN. That is now treated as EINPROGRESS error. --- diff --git a/src/unix.c b/src/unix.c index c67b724..99f0181 100644 --- a/src/unix.c +++ b/src/unix.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: unix.c,v 1.11 2005-02-01 14:37:47 adam Exp $ + * $Id: unix.c,v 1.12 2005-02-04 13:28:47 adam Exp $ * UNIX socket COMSTACK. By Morten Bøgeskov. */ /** @@ -324,11 +324,11 @@ static int unix_connect(COMSTACK h, void *address) r = connect(h->iofile, (struct sockaddr *) add, SUN_LEN(add)); if (r < 0) { - if (yaz_errno() == EINPROGRESS) + if (yaz_errno() == EINPROGRESS || yaz_errno() == EAGAIN) { h->event = CS_CONNECT; h->state = CS_ST_CONNECTING; - h->io_pending = CS_WANT_WRITE|CS_WANT_READ; + h->io_pending = CS_WANT_WRITE; return 1; } h->cerrno = CSYSERR;