From 52d3001130a64ded8da64721bf73b90e6fbe924f Mon Sep 17 00:00:00 2001 From: Julien Laffaye Date: Thu, 11 Apr 2019 17:57:07 +0200 Subject: [PATCH] Specify that a server conn is not concurrent safe. Fixes #128 --- ftp.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ftp.go b/ftp.go index afaffca..13214e3 100644 --- a/ftp.go +++ b/ftp.go @@ -27,7 +27,8 @@ const ( ) // ServerConn represents the connection to a remote FTP server. -// It should be protected from concurrent accesses. +// A single connection only supports one in-flight data connection. +// It is not safe to be called concurrently. type ServerConn struct { options *dialOptions conn *textproto.Conn