]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Increase event buffer
authorSam Tannous <stannous@cumulusnetworks.com>
Tue, 8 Jul 2014 19:15:40 +0000 (15:15 -0400)
committerVincent Bernat <vincent@bernat.im>
Tue, 8 Jul 2014 19:43:31 +0000 (21:43 +0200)
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>
src/daemon/event.c

index 8f3124876b9ef36a63e1eddea7f80db9ab10ade3..eacda7c7b0e4e3a3db1e813ee69494fbb2f44564 100644 (file)
@@ -27,6 +27,8 @@
 #include <event2/bufferevent.h>
 #include <event2/buffer.h>
 
+#define EVENT_BUFFER 1024
+
 static void
 levent_log_cb(int severity, const char *msg)
 {
@@ -598,7 +600,7 @@ static void
 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 */