On connection in-progress, save the whole addrinfo struct, not just ai_addr

This commit is contained in:
Florent Le Coz
2014-05-28 02:03:36 +02:00
parent 6c2d03da4e
commit e033b6a3ae
2 changed files with 7 additions and 16 deletions
+1
View File
@@ -131,6 +131,7 @@ protected:
* connect()ing to it, to reuse it directly when connect() is called
* again.
*/
struct addrinfo addrinfo;
struct sockaddr ai_addr;
socklen_t ai_addrlen;