Fix --connect-send. Half-close connections so we can detect two read sockets talking to each other.

This commit is contained in:
Ian Gulliver
2016-02-24 20:25:31 -08:00
parent 1635534243
commit 3e2c426e95
4 changed files with 19 additions and 10 deletions

View File

@@ -78,8 +78,7 @@ static void outgoing_disconnect_handler(struct peer *peer) {
assert(!close(outgoing->peer.fd));
}
fprintf(stderr, "O %s: Peer disconnected; reconnecting...\n", outgoing->id);
outgoing_resolve(outgoing);
outgoing_retry(outgoing);
}
static void outgoing_connect_result(struct outgoing *outgoing, int result) {