소스 검색

Specify that a server conn is not concurrent safe.

Fixes #128
Julien Laffaye 6 년 전
부모
커밋
52d3001130
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      ftp.go

+ 2 - 1
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