This buffer is just used to drain the event socket
During high event traffic saw a no buffer space error. This and other
buffers need to be revisited.
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: Sam Tannous <stannous@cumulusnetworks.com>
#include <event2/bufferevent.h>
#include <event2/buffer.h>
+#define EVENT_BUFFER 1024
+
static void
levent_log_cb(int severity, const char *msg)
{
levent_iface_recv(evutil_socket_t fd, short what, void *arg)
{
struct lldpd *cfg = arg;
- char buffer[100];
+ char buffer[EVENT_BUFFER];
int n;
/* Discard the message */