V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
v2defy
V2EX  ›  Go 编程语言

go 语言, ftp 问题求助

  •  
  •   v2defy · 2021-07-24 08:25:02 +08:00 · 1852 次点击
    这是一个创建于 978 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我需要使用 go 语言封装一下 ftp 的上传下载功能,使用 https://github.com/jlaffaye/ftp 这个包,但是遇到了一个棘手的问题。

    ftp 服务器使用的是 filezilla server,并且开启了“require TLS session resumption on data connection when using PROT P“ 选项。

    因此就出现了一个错误,450 TLS session of data connection has not resumed or the session does not match the control connection 。

    如果将 filezilla server 的那个选项取消勾选就可以正常连接,但是同事说不能取消勾选,需要这个选项。而且即使这个选项开着,python 也是可以正常连接的,只是 go 语言不行。

    哎,网上搜遍了也找不到解决这个问题的方法,v2 藏龙卧虎,发出来看看会不会有奇迹发生。

    2 条回复    2021-07-24 10:00:51 +08:00
    catcn
        1
    catcn  
       2021-07-24 08:51:26 +08:00
    input2output
        2
    input2output  
       2021-07-24 10:00:51 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1368 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 17:38 · PVG 01:38 · LAX 10:38 · JFK 13:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.