Enable socket keepalives.

This commit is contained in:
Ian Gulliver
2016-02-25 17:27:07 -08:00
parent 3235211bc2
commit 99882bc5c7
5 changed files with 33 additions and 1 deletions

View File

@@ -12,6 +12,7 @@
#include "peer.h"
#include "resolve.h"
#include "socket.h"
#include "wakeup.h"
#include "uuid.h"
@@ -65,6 +66,8 @@ static void incoming_handler(struct peer *peer) {
local_hbuf, local_sbuf,
peer_hbuf, peer_sbuf);
socket_init(fd);
incoming->handler(fd, incoming->passthrough, NULL);
}