GithubHelp home page GithubHelp logo

Comments (5)

zhanghao102937 avatar zhanghao102937 commented on August 19, 2024

这种异常一般发生在 多线程同时使用一个StorageClient操作文件的情况下。
有两种解决办法:
1、对StorageClient对象加锁
2、每次下载或上传文件时,重新new一个StorageClient

from fastdfs-client-java.

dm-maker avatar dm-maker commented on August 19, 2024

用的1.27-snapsot版本的client,uploadfile时报错: recv cmd: 60 is not correct, expect cmd: 100;解决了吗

from fastdfs-client-java.

aboutZZ avatar aboutZZ commented on August 19, 2024

同样遇到此问题。单线程测试文件上传时报此错

from fastdfs-client-java.

readme1988 avatar readme1988 commented on August 19, 2024

recv cmd: 32 是端口号不正确的问题,请检查端口号

from fastdfs-client-java.

xasnow avatar xasnow commented on August 19, 2024
        TrackerClient trackerClient = new TrackerClient();  
        trackerServer = trackerClient.getConnection();  //注意加上这行,获取连接
    StorageClient storageClient = new StorageClient(trackerServer, storageServer);

from fastdfs-client-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.