4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 19:03:31 +08:00

【修复bug】修复sal判断internet连接的隐藏bug

1、当前判断网卡是否连接Internet是通过连接rtt-thread的服务器来判断的,
2、这个月开始好像服务器挂了,不响应请求
3、这里超时用的2000秒,导致sys workqueue被卡死在这里了
This commit is contained in:
HubretXie 2019-11-26 09:38:16 +08:00 committed by GitHub
parent 17f7f1c7ca
commit 3c2bfa2349
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,7 +131,7 @@ static void check_netdev_internet_up_work(struct rt_work *work, void *work_data)
{ {
#define SAL_INTERNET_VERSION 0x00 #define SAL_INTERNET_VERSION 0x00
#define SAL_INTERNET_BUFF_LEN 12 #define SAL_INTERNET_BUFF_LEN 12
#define SAL_INTERNET_TIMEOUT (2 * RT_TICK_PER_SECOND) #define SAL_INTERNET_TIMEOUT (2)
#define SAL_INTERNET_HOST "link.rt-thread.org" #define SAL_INTERNET_HOST "link.rt-thread.org"
#define SAL_INTERNET_PORT 8101 #define SAL_INTERNET_PORT 8101