Do flow-specific setsockopt() before accept()

This commit is contained in:
Ian Gulliver
2016-02-29 22:17:37 -08:00
parent a093b8a1b6
commit b6a582e95a
8 changed files with 43 additions and 32 deletions

View File

@@ -96,7 +96,7 @@ static void outgoing_connect_result(struct outgoing *outgoing, int result) {
case 0:
fprintf(stderr, "O %s: Connected to %s/%s\n", outgoing->id, hbuf, sbuf);
freeaddrinfo(outgoing->addrs);
socket_connected_init(outgoing->peer.fd);
flow_socket_connected(outgoing->peer.fd, outgoing->flow);
outgoing->attempt = 0;
int fd = outgoing->peer.fd;
outgoing->peer.fd = -1;