tedcy / fdfs_client Goto Github PK
View Code? Open in Web Editor NEWfastdfs go client impl
fastdfs go client impl
check client.conf
use_connection_pool=true
如果use_connection_pool = true
connection_pool_max_idle_time = 3600
这样连接池就会保持3600s时间,这样会导致连接无法释放
在Windows平台调用读取配置文件,配置文件貌似必须用utf-8才能被读取到,还有个问题请教教下,我在Windows平台使用报这个错误:API server listening at: 127.0.0.1:53055
UploadByFilename no connPool can be use ,我调试看了下。
line, err := reader.ReadString('\n')
line = strings.TrimSuffix(line, "\n")
这里是不是应该用\r\n呢
API server listening at: 127.0.0.1:49703
TrackerTask RecvHeader recv resp status 28 != 0
Debugger finished with exit code 0
请问这个报错是什么问题
可以帮忙看看吗?大佬?
https://github.com/mini-docker/testbeego/tree/bugs
github 上搜索到,但是还需要开源码 ?
执行UploadByFilename时出现recvStorageInfo pkgLen 70 invaild
或者把结构体config改为Config 使其能直接修改并生成客户端?感觉这样子更符合go语言的习惯。
conn_pool.go中会判断client.conf中maxConns的值,实际上该字段并不存在,导致下面的判断成立,返回error信息
if maxConns < MAXCONNS_LEAST {
return nil, fmt.Errorf("too little maxConns < %d", MAXCONNS_LEAST)
}
config 里面 读取文件\n 分隔没考虑到windows平台
windows \r\n 会提示The specified class was not found.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.