spug/spug_api
xiasf 3b918eebd1 F 修复执行发布前任务可能出现response timeout的问题
BUG原因:`_get_channel()` 这里没有考虑到应用环境变量命令长度问题,当命令在目标机执行时被截断时就会出问题,我参照 `exec_command()` 让 `_get_channel()` 这里也用一样的方式(`put_file_by_fl()`),就解决这个问题了。

另外`send()` 都调整成了 `sendall()` 防止极端情况下命令字符没有被全部发送出去而出问题。

有人曾反映过这个问题:https://github.com/openspug/spug/issues/455

----

相关的资料:

https://unix.stackexchange.com/questions/643777/is-there-any-limit-on-line-length-when-pasting-to-a-terminal-in-linux

https://stackoverflow.com/questions/18015137/linux-terminal-input-reading-user-input-from-terminal-truncating-lines-at-4095

https://github.com/torvalds/linux/blob/v5.11/drivers/tty/n_tty.c#L1681
2022-06-24 11:29:04 +08:00
..
apps F 修复账户管理编辑无法保存的问题 2022-06-20 23:24:21 +08:00
consumer U 优化web终端对中文编码支持 2022-04-28 13:54:04 +08:00
libs F 修复执行发布前任务可能出现response timeout的问题 2022-06-24 11:29:04 +08:00
logs U api update 2020-01-08 00:25:18 +08:00
repos fix issue 2021-03-31 23:55:41 +08:00
spug U Release v3.1.7 2022-06-20 23:26:12 +08:00
tools fix issue 2021-09-22 10:10:40 +08:00
.gitignore U .gitignore添加忽略logs目录下的日志文件 2020-04-14 14:18:52 +08:00
manage.py U update License 2020-06-14 18:30:52 +08:00
requirements.txt Bump django from 2.2.27 to 2.2.28 in /spug_api 2022-04-22 23:37:29 +00:00