merge: dsh-1741f418-0c10 合入 master(FTP 控制通道超时改字节间隔语义,RAM 台账回填)

This commit is contained in:
2026-11-13 16:24:47 +08:00
5 changed files with 16 additions and 10 deletions
+6
View File
@@ -162,6 +162,12 @@ int lftpd_inet_read_line(int socket, char *buffer, size_t buffer_len)
}
total_read_len += read_len;
/* 预算语义="字节间隔超时"而非"整行总时长":收到任何字节即证明对端
* 存活,重置 t0。原形态下 t0 只在入口置一次,慢速/保活型客户端的零散
* 短行会被 30s 总预算误掐(台架 2026-11-13:FileZilla 会话周期性
* "control channel closed by peer (ret=-1)",NOOP 保活救不回来)。
* 空闲回收语义不变:零字节静默满预算仍由 rem==0 判超时释放。 */
t0 = xTaskGetTickCount();
char *p = strstr(buffer, "\r\n");
if (p != NULL) {