出错的时候,数据连接没有关闭
Opened this issue · 1 comments
baiguidong commented
connGetter, err := pconn.prepareDataConn()
if err != nil {
pconn.debug("error preparing data connection: %s", err)
return 0, err
}
var cmd string
if dest == nil && src != nil {
cmd = "STOR"
} else if dest != nil && src == nil {
cmd = "RETR"
} else {
panic("this shouldn't happen")
}
err = pconn.sendCommandExpected(replyGroupPreliminaryReply, "%s %s", cmd, path)
if err != nil {
return 0, err
--------------------------------->>
}
dc, err := connGetter()
if err != nil {
pconn.debug("error getting data connection: %s", err)
return 0, err
}
出错的时候,数据连接没有关闭
baiguidong commented
The data connection was not closed when an error occurred