]> code.citadel.org Git - citadel.git/commit
* When attempting to connect() to the first available of multiple addresses, create...
authorArt Cancro <ajc@citadel.org>
Fri, 20 Aug 2010 01:31:37 +0000 (01:31 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 20 Aug 2010 01:31:37 +0000 (01:31 +0000)
commit6c04432144b2d842372c252ea30fd0340828f620
treedc7f0b8d5538ad7459b1e7bfbe106a882495b09c
parent4498d576d5803efb3e8c786113ed3f4d76e01143
* When attempting to connect() to the first available of multiple addresses, create a new socket() with the correct address type (IPv6 or IPv4) for the address we're about to try.
* Also CLOSE that socket if the connection attempt fails.  This also fixes a socket descriptor leak that's been in the previous implementation pretty much forever.
citadel/clientsocket.c
citadel/textclient/citadel.c
citadel/utillib/citadel_ipc.c