Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
LWIP
webnet
10
webnet线程发送应答数据,过了至少2秒后才到达eth_tx线程处理,导致网页打开很慢
发布于 2024-03-06 18:53:55 浏览:713
订阅该版
[tocm] webnet线程处理一个请求在14310毫秒处结束,中间多次通过webnet_session_write和webnet_session_printf函数调用send发送了数据。在2490毫秒之后(即16800毫秒处),线程eth_tx_thread_entry才收邮箱,调用enetif->eth_tx()发数据。 rt-thread版本:V5.0.0 LwIP版本:V2.1.2 WebNet版本:V2.0.3 编译器:gcc version 11.4.0 ## 抓包  ## 线程信息  ## 日志 ``` [17650 tcpip_thread] thread "tcpip" TCPIP_MBOX_FETCH msg 2000407c ealp 6970 [17660 ethernetif_linkoutput] thread "tcpip" send msg interval 9380 [17660 eth_tx_thread_entry] thread "etx" recv msg [17670 tcpip_thread] thread "tcpip" TCPIP_MBOX_FETCH msg 2000407c ealp 0 [17670 ethernetif_linkoutput] thread "tcpip" send msg interval 10 [17680 eth_tx_thread_entry] thread "etx" recv msg [17690 tcpip_thread] thread "tcpip" TCPIP_MBOX_FETCH msg 2000407c ealp 0 [17740 tcpip_thread] thread "tcpip" TCPIP_MBOX_FETCH msg 2000407c ealp 50 [17750 tcpip_thread] thread "tcpip" TCPIP_MBOX_FETCH msg 2000407c ealp 0 [17760 ethernetif_linkoutput] thread "tcpip" send msg interval 80 [17770 eth_tx_thread_entry] thread "etx" recv msg [17770 tcpip_thread] thread "tcpip" TCPIP_MBOX_FETCH msg 2000407c ealp 0 [17780 webnet_session_read] read_cout 574 [D/wn.log] new client: 192.168.5.19:55289 [D/wn.log] method: GET [D/wn.log] request: /net_setting.shtml [17800 webnet_module_handle_uri] [D/wn.log] physical url: /webnet/net_setting.shtml [D/wn.log] mime type: text/html [17810 webnet_module_log] [17820 ethernetif_linkoutput] thread "webnet" send msg interval 50 [17820 eth_tx_thread_entry] thread "etx" recv msg [17830 webnet_session_write] size 85 [17830 ethernetif_linkoutput] thread "webnet" send msg interval 10 [17840 eth_tx_thread_entry] thread "etx" recv msg [17850 webnet_session_write] size 2514 [17850 webnet_session_printf] size 1 [17850 webnet_session_write] size 174 [17860 webnet_session_printf] size 12 [17860 webnet_session_write] size 190 [17870 webnet_session_printf] size 13 [17870 ethernetif_linkoutput] thread "webnet" send msg interval 30 [17880 eth_tx_thread_entry] thread "etx" recv msg [17[17880 tcpip_thread] thread "tcpip" TCPIP_MBOX_FETCH msg 2000407c ealp 100 880 tcpip_thread] thread "tcpip" TC[17890 webnet_session_printf] size 11 [17900 webnet_session_write] size 340 [17900 webnet_session_printf] size 7 [17900 webnet_session_write] size 65 [17910 webnet_session_printf] size 7 [17910 webnet_session_write] size 2595 [17920 webnet_sessions_handle_fds] closed [20410 ethernetif_linkoutput] thread "tcpip" send msg interval 2530 [20410 eth_tx_thread_entry] thread "etx" recv msg [20420 tcpip_thread] thread "tcpip" TCPIP_MBOX_FETCH msg 2000407c ealp 2530 [20420 ethernetif_linkoutput] thread "tcpip" send msg interval 10 [20430 eth_tx_thread_entry] thread "etx" recv msg [20440 tcpip_thread] thread "tcpip" TCPIP_MBOX_FETCH msg 2000407c ealp 0 [20440 ethernetif_linkoutput] thread "tcpip" send msg interval 10 [20450 eth_tx_thread_entry] thread "etx" recv msg [20460 ethernetif_linkoutput] thread "tcpip" send msg interval 10 [20460 eth_tx_thread_entry] thread "etx" recv msg [20470 tcpip_thread] thread "tcpip" TCPIP_MBOX_FETCH msg 2000407c ealp 0 [20470 tcpip_thread] thread "tcpip" TCPIP_MBOX_FETCH msg 2000407c ealp 0 [20480 ethernetif_linkoutput] thread "tcpip" send msg interval 20 [20490 eth_tx_thread_entry] thread "etx" recv msg [20490 tcpip_thread] thread "tcpip" TCPIP_MBOX_FETCH msg 2000407c ealp 0 [20500 tcpip_thread] thread "tcpip" TCPIP_MBOX_FETCH msg 2000407c ealp 0 [20510 ethernetif_linkoutput] thread "tcpip" send msg interval 20 [20510 eth_tx_thread_entry] thread "etx" recv msg [20510 eth_tx_threaon_read] read_cout 423 [D/wn.log] new client: 192.168.5.19:55290 [D/wn.log] method: GET [D/wn.log] request: /css/style.css [20540 webnet_module_handle_uri] [D/wn.log] physical url: /webnet/css/style.css [D/wn.log] mime type: text/css [20550 webnet_module_log] [20570 ethernetif_linkoutput] thread "webnet" send msg interval 60 [20570 eth_tx_thread_entry] thread "etx" recv msg [20580 webnet_session_printf] size 13 [20580 webnet_session_printf] size 2 [20590 webnet_session_printf] size 2 [20590 webnet_session_printf] size 22 [20590 webnet_session_printf] size 24 [20600 webnet_session_printf] size 22 [20600 webnet_session_printf] size 24 [20600 webnet_session_printf] size 31 [20610 webnet_session_printf] size 2 [20610 webnet_session_write] size 1194 [20620 ethernetif_linkoutput] thread "webnet" send msg interval 50 [20620 eth_tx_thread_entry] thread "etx" recv msg [20630 tcpip_thread] thread "tcpip" TCPIP_MBOX_FETCH msg 2000407c ealp 110 [22920 ethernetif_linkoutput] thread "tcpip" send msg interval 2300 [22920 eth_tx_thread_entry] thread "etx" recv msg [22930 tcpip_thread] thread "tcpip" TCPIP_MBOX_FETCH msg 2000407c ealp 2290 [22940 tcpip_thread] thread "tcpip" TCPIP_MBOX_FETCH msg 2000407c ealp 10 [22950 ethernetif_linkoutput] thread "tcpip" send msg interval 30 [22950 eth_tx_thread_entry] thread "etx" recv msg ```
查看更多
1
个回答
默认排序
按发布时间排序
出出啊
2024-03-07
恃人不如自恃,人之为己者不如己之自为也
有没有发现你打印的毫秒数都是10的整数倍,是不是有个同优先级的线程时间片是10ms,霸占cpu每10ms才执行一次其它同优先级线程?
撰写答案
登录
注册新账号
关注者
0
被浏览
713
关于作者
lx1024
这家伙很懒,什么也没写!
提问
2
回答
4
被采纳
0
关注TA
发私信
相关问题
1
RT-THREAD在STM32H747平台上移植lwip
2
{lwip}使能RT_LWIP_DHCP时可以获取到ip
3
stm32f103 LWIP 2.0.2 TCP收发问题
4
lwip2.1不重启修改IP
5
关于网络协议栈的测试
6
可否将LWIP升级到2.1.2 和 2.0.3?
7
socket(AF_INET, SOCK_RAW, IPPROTO_UDP);
8
tcpclient 插拔网线问题?
9
两个tcpclient同时通讯可以吗?
10
SO_BINDTODEVICE 未定义该如何解决
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
RT-thred的stm32h723对应bsp包CubeMX添加其他外设报错
2
RT-Thread中的time溢出问题,时间戳溢出,解决方法
3
ART-PI使用env驱动ETH网卡,pc和板子可以ping通
4
SystemView线程名字不显示
5
只用网页也能跑RT-Smart 无门槛腾讯Cloud studio + smart-build快速构建
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
DMA
USB
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
rt-smart
FAL
I2C_IIC
UART
ESP8266
cubemx
WIZnet_W5500
ota在线升级
PWM
BSP
flash
freemodbus
packages_软件包
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
编译报错
中断
Debug
rt_mq_消息队列_msg_queue
keil_MDK
ulog
SFUD
msh
C++_cpp
MicroPython
本月问答贡献
RTT_逍遥
9
个答案
2
次被采纳
三世执戟
8
个答案
1
次被采纳
KunYi
8
个答案
1
次被采纳
winfeng
2
个答案
1
次被采纳
YZRD
2
个答案
1
次被采纳
本月文章贡献
catcatbing
2
篇文章
5
次点赞
swet123
1
篇文章
4
次点赞
Days
1
篇文章
4
次点赞
YZRD
1
篇文章
2
次点赞
阳光的掌控者
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部