Skip to content

Commit

Permalink
rc: net.c: fix slow webui in apple devices
Browse files Browse the repository at this point in the history
  • Loading branch information
hanwckf authored Feb 7, 2022
1 parent 3cac9a8 commit ed67df5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trunk/user/rc/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -779,8 +779,8 @@ set_tcp_tweaks(void)
sprintf(tmp, "/proc/sys/net/%s/%s", "ipv4", "tcp_synack_retries");
fput_int(tmp, 3); // def: 5

sprintf(tmp, "/proc/sys/net/%s/%s", "ipv4", "tcp_tw_recycle");
fput_int(tmp, 1);
// sprintf(tmp, "/proc/sys/net/%s/%s", "ipv4", "tcp_tw_recycle");
// fput_int(tmp, 1);

sprintf(tmp, "/proc/sys/net/%s/%s", "ipv4", "tcp_tw_reuse");
fput_int(tmp, 1);
Expand Down

7 comments on commit ed67df5

@Shawshank01
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This is really help me.

@YaKaiLi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great!

@kkjoy
Copy link

@kkjoy kkjoy commented on ed67df5 Aug 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

666

@uifor
Copy link

@uifor uifor commented on ed67df5 Jan 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

大佬是否可以修复一下padavan3.4内核同样的问题

@LiYeLin
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@iwinmin
Copy link

@iwinmin iwinmin commented on ed67df5 Sep 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

大佬是否可以修复一下padavan3.4内核同样的问题

参数设置 > 脚本 > 在路由器启动后执行 脚本, 增加下面的代码就可以了

#fix web ui slow issue
echo 0 > /proc/sys/net/ipv4/tcp_tw_recycle

@estherloverxx
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesnt work on 3.4.3.9-099_23-12-1

Please sign in to comment.