Do you think it should be ok to do this for both Linux and Windows (go to next address info if drizzle_con_wait returns DRIZZLE_RETURN_TIMEOUT in drizzle_state_connecting) or should we just do it on Windows?
Also, for multiple connection attemps to work correctly on both Windows and Linux, "(void)close(con->fd);" should be replaced by "(void)closesocket(con->fd);" in drizzle_state_connect (this would match what is done in drizzle_con_close). Marc On Thu, Apr 7, 2011 at 11:44 AM, Olaf van der Spek <[email protected]> wrote: > On Thu, Apr 7, 2011 at 12:43 PM, <[email protected]> wrote: >> I do not know if there is a way to differentiate between a genuine time-out >> and a refused connection on Windows. > > Is there a need to differentiate? > In both cases you could try the next address. > > Olaf > > _______________________________________________ > Mailing list: https://launchpad.net/~drizzle-discuss > Post to : [email protected] > Unsubscribe : https://launchpad.net/~drizzle-discuss > More help : https://help.launchpad.net/ListHelp > _______________________________________________ Mailing list: https://launchpad.net/~drizzle-discuss Post to : [email protected] Unsubscribe : https://launchpad.net/~drizzle-discuss More help : https://help.launchpad.net/ListHelp

