File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -299,6 +299,9 @@ systemctl start nginx
299
299
300
300
301
301
# 升级日志
302
+ ### ver2.2.3
303
+ 修复部分 linux 发行版 webssh 使用 sz 无法连续下载文件的问题;
304
+
302
305
### ver2.2.2
303
306
优化 supervisord 日志输出配置;
304
307
Original file line number Diff line number Diff line change @@ -184,15 +184,19 @@ def websocket_to_django(self):
184
184
try :
185
185
while 1 :
186
186
if self .zmodemOO :
187
+ # 部分 lrzsz 版本(如 0.12.21rc),在 sz 结束后不会发送 b'OO',这样会导致
188
+ # 前端 zmodemjs 库认为 sz 下载未结束,故根据情况需要手动发送 b'OO'
187
189
self .zmodemOO = False
188
190
x = self .channel .recv (2 )
189
191
if not len (x ):
190
192
return
193
+
191
194
if x == b'OO' :
192
- self .websocker .send (bytes_data = x )
195
+ self .websocker .send (bytes_data = b'OO' )
193
196
continue
194
197
else :
195
- x += self .channel .recv (BufferSize )
198
+ self .websocker .send (bytes_data = b'OO' )
199
+
196
200
else :
197
201
x = self .channel .recv (BufferSize )
198
202
if not len (x ):
You can’t perform that action at this time.
0 commit comments