You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tested with netcat client to the FTPd port, the client just does USER + PASS + QUIT, and I am polite on the client side (I keep the netcat connection opened after sending the QUIT command).
There is a double c.Conn.Close() On the ftpserverlib server when a client send a gracefully QUIT message :
Hello,
Tested with netcat client to the FTPd port, the client just does USER + PASS + QUIT, and I am polite on the client side (I keep the netcat connection opened after sending the QUIT command).
There is a double
c.Conn.Close()
On the ftpserverlib server when a client send a gracefully QUIT message :func (c *clientHandler) handleQUIT(_ string) error {
in https://github.com/fclairamb/ftpserverlib/blob/v0.24.1/handle_misc.go#L298calls
c.disconnect()
which infunc (c *clientHandler) disconnect() {
athttps://github.com/fclairamb/ftpserverlib/blob/v0.24.1/client_handler.go#L134
does a FIRST
(*clientHandler).conn.Close()
then X nanoseconds later
func (c *clientHandler) HandleCommands() {
inhttps://github.com/fclairamb/ftpserverlib/blob/v0.24.1/client_handler.go#L401 has a :
defer which calls
c.conn.Close()
a second time athttps://github.com/fclairamb/ftpserverlib/blob/v0.24.1/client_handler.go#L375
SYMPTOM :
Here on a Linux, at least on a loopback TCP connection, superfluous messages appear in the logs :
This is probably related to fclairamb/ftpserver#710
The text was updated successfully, but these errors were encountered: