当前位置: 代码迷 >> 综合 >> 云服务器使用fastDFS错误,readtime out
  详细解决方案

云服务器使用fastDFS错误,readtime out

热度:95   发布时间:2024-03-09 12:47:26.0

报错如下:

Caused by: java.net.SocketTimeoutException: Read timed out

 

com.github.tobato.fastdfs.exception.FdfsIOException: 客户端连接服务端出现了io异常:socket io exception occured while receive content

 

错误原因:上传的文件太大,云服务器的上行带宽太小

 

在配置springboot时注销以下配置:

fdfs.so-timeout = 1501
fdfs.connect-timeout = 601