Start of fastopen support.

This commit is contained in:
Ian Gulliver
2016-02-27 10:12:48 -08:00
parent 675fb51282
commit 79fc645fa0
4 changed files with 14 additions and 5 deletions

View File

@@ -65,7 +65,7 @@ static void incoming_handler(struct peer *peer) {
local_hbuf, local_sbuf,
peer_hbuf, peer_sbuf);
socket_init(fd);
socket_connected_init(fd);
incoming->handler(fd, incoming->passthrough, NULL);
}
@@ -99,6 +99,8 @@ static void incoming_listen(struct incoming *incoming) {
continue;
}
socket_bound_init(incoming->peer.fd);
assert(listen(incoming->peer.fd, 255) == 0);
break;
}