leffss/django-webssh

你好,我在使用zmodemjs上传文件时,websocket自动关闭,请问是什么原因呢?

Lvyc1995 opened this issue · 1 comments

报错如下:
websssterm.js:207 WebSocket is already in CLOSING or CLOSED state.
image

websocket报错如下:
CloseStatus[code=1009, reason=No async message support and buffer too small. Buffer size: [8,192], Message size: [2,119]]

问题已经解决,原因是 websocket默认的缓存区太小,增加缓存区后,问题解决,java :Session.setBinaryMessageSizeLimit(1024 * 1024);//1MB