Skip to content

Commit d52a71e

Browse files
This error happens when we try to write to a socket or pipe
which is already closed by peer. For e.g., the other side may have been killed during warmboot or using pkill. Hence, changing the log level to INFO
1 parent 6058709 commit d52a71e

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
From b6588aa5aba1531277e78bb2824334acc52493eb Mon Sep 17 00:00:00 2001
2+
From: sudhanshukumar22 <sudhanshu.kumar@broadcom.com>
3+
Date: Wed, 5 Mar 2025 00:55:58 -0800
4+
Subject: [PATCH] This error happens when we try to write to a socket or pipe
5+
which is already closed by peer. For e.g., the other side may have been
6+
killed during warmboot or using pkill. Hence, changing the log level to INFO
7+
8+
---
9+
lib/mgmt_msg.c | 4 +++-
10+
1 file changed, 3 insertions(+), 1 deletion(-)
11+
12+
diff --git a/lib/mgmt_msg.c b/lib/mgmt_msg.c
13+
index aff9af7e8..0a0f17ffe 100644
14+
--- a/lib/mgmt_msg.c
15+
+++ b/lib/mgmt_msg.c
16+
@@ -28,6 +28,8 @@
17+
#define MGMT_MSG_ERR(ms, fmt, ...) \
18+
zlog_err("%s: %s: " fmt, (ms)->idtag, __func__, ##__VA_ARGS__)
19+
20+
+#define MGMT_MSG_INFO(ms, fmt, ...) \
21+
+ zlog_info("%s: %s: " fmt, (ms)->idtag, __func__, ##__VA_ARGS__)
22+
DEFINE_MTYPE(LIB, MSG_CONN, "msg connection state");
23+
24+
/**
25+
@@ -70,7 +72,7 @@ enum mgmt_msg_rsched mgmt_msg_read(struct mgmt_msg_state *ms, int fd,
26+
}
27+
if (n <= 0) {
28+
if (n == 0)
29+
- MGMT_MSG_ERR(ms, "got EOF/disconnect");
30+
+ MGMT_MSG_INFO(ms, "got EOF/disconnect");
31+
else
32+
MGMT_MSG_ERR(ms,
33+
"got error while reading: '%s'",
34+
--
35+
2.39.4
36+

src/sonic-frr/patch/series

+2
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,7 @@
4141
0059-Fix-BGP-reset-on-suppress-fib-pending-configuration.patch
4242
0060-bgpd-Validate-both-nexthop-information-NEXTHOP-and-N.patch
4343
0061-Set-multipath-to-514-and-disable-bgp-vnc-for-optimiz.patch
44+
0061-dont-print-warning-if-not-a-daemon.patch
4445
0062-zebra-lib-use-internal-rbtree-per-ns.patch
4546
0063-Patch-to-send-tag-value-associated-with-route-via-ne.patch
47+
0081-This-error-happens-when-we-try-to-write-to-a-socket.patch

0 commit comments

Comments
 (0)