mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #12353 from swordqiu/hotfix/qj-webconsole-close-connection-on-error
fix: webconsole close socket when read on error
This commit is contained in:
@@ -74,11 +74,13 @@ func initSocketHandler(so socketio.Socket, p *session.Pty) {
|
||||
data, err := p.Read()
|
||||
if err != nil {
|
||||
log.Errorf("[%s] read data error: %v", so.Id(), err)
|
||||
err = p.Stop()
|
||||
/*err = p.Stop()
|
||||
if err != nil {
|
||||
log.Warningf("[%s] stop tty error: %v", so.Id(), err)
|
||||
}
|
||||
p.Session.Reconnect()
|
||||
*/
|
||||
cleanUp(so, p)
|
||||
} else {
|
||||
so.Emit(OUTPUT_EVENT, string(data))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user