Enable socket keepalives.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user