]> git.meshlink.io Git - meshlink/commit
Refactor outgoing connection handling.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 7 Oct 2012 19:02:40 +0000 (21:02 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 7 Oct 2012 19:02:40 +0000 (21:02 +0200)
commitce059e36fdb3d3049c278e8b2f36b03c93778996
treeff445da61a6febe6cd4ba63b0b50159baf107bec
parentd93a37928b75b17ac5e1eae5c2d62fd0760a6608
Refactor outgoing connection handling.

Struct outgoing_ts and connection_ts were depending too much on each other,
causing lots of problems, especially the reuse of a connection_t. Now, whenever
a connection is closed it is immediately removed from the list of connections
and destroyed.
src/conf.c
src/conf.h
src/connection.c
src/connection.h
src/net.c
src/net.h
src/net_socket.c
src/protocol_auth.c