2 Star 0 Fork 32

我们17走/gazelle

forked from src-openEuler/gazelle 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0256-LOG-add-log-when-udp-send_ring-is-exhausted.patch 785 Bytes
一键复制 编辑 原始数据 按行查看 历史
From 66b11c7916740615be6012938e82abd821a1b06e Mon Sep 17 00:00:00 2001
From: yinbin <yinbin8@huawei.com>
Date: Mon, 23 Sep 2024 20:17:10 +0800
Subject: [PATCH] LOG:add log when udp send_ring is exhausted
---
src/lstack/core/lstack_lwip.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/lstack/core/lstack_lwip.c b/src/lstack/core/lstack_lwip.c
index 636bbc7..a7b7202 100644
--- a/src/lstack/core/lstack_lwip.c
+++ b/src/lstack/core/lstack_lwip.c
@@ -497,6 +497,7 @@ static ssize_t do_lwip_udp_fill_sendring(struct lwip_sock *sock, const void *buf
}
if (write_avail < write_num) {
+ LSTACK_LOG(WARNING, LSTACK, "sock send_ring is already exhausted.\n");
sem_timedwait_nsecs(&sock->snd_ring_sem);
GAZELLE_RETURN(ENOMEM);
}
--
2.33.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/together17/gazelle.git
git@gitee.com:together17/gazelle.git
together17
gazelle
gazelle
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385