#include "bacula.h"
#include "jcr.h"
#include <netdb.h>
+#include <netinet/tcp.h>
#ifndef ENODATA /* not defined on BSD systems */
#define ENODATA EPIPE
}
#if defined(TCP_KEEPIDLE)
if (heart_beat) {
- int opt = heart_beat
- if (setsockopt(sockfd, IPPROTO_IP, TCP_KEEPIDLE, (sockopt_val_t)&opt, sizeof(opt)) < 0) {
+ int opt = heart_beat;
+ if (setsockopt(sockfd, SOL_TCP, TCP_KEEPIDLE, (sockopt_val_t)&opt, sizeof(opt)) < 0) {
berrno be;
- Qmsg1(jcr, M_WARNING, 0, _("Cannot set SO_KEEPIDLE on socket: %s\n"),
+ Qmsg1(jcr, M_WARNING, 0, _("Cannot set TCP_KEEPIDLE on socket: %s\n"),
be.bstrerror());
}
}
SubSysDirectory = "@subsysdir@"
PluginDirectory = "@sbindir@"
Maximum Concurrent Jobs = 4
+ Heartbeat Interval = 330
Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3" # Console password
Messages = Standard
}
Device = FileStorage
Media Type = File
Maximum Concurrent Jobs = 10
+ Heartbeat Interval = 330
}
Storage {
Device = FileStorage1
Media Type = File1
Maximum Concurrent Jobs = 10
+ Heartbeat Interval = 330
}