Git Product home page Git Product logo

Comments (4)

yfakariya avatar yfakariya commented on July 18, 2024

Hi.

No, it might be caused by an Unpacker bug or a corrupt data. Could you tell
me what bytes did you try?

Thank you!

from msgpack-cli.

nolink avatar nolink commented on July 18, 2024

Sorry, the byte array is too complex, my use case is:

  1. Java Server read data from database, use msgpack-java to pack the list<list<Value>> to the network
  2. C# Client read data from network, unpack it back to List<List<MessagePackObject>>

The exception only throws when the client read too fast, if I put the java server to sleep some time, the client will work as expected, could it be Unpacker bug of reading the wrong byte.

BTW, I'm doing it synchronously, so it can not be synchronized bug.

Thanks!

from msgpack-cli.

yfakariya avatar yfakariya commented on July 18, 2024

Oops! My post is pending in the browser over 10 days. Sorry for too late response.

Unpacker does not treat synchronization related matter, it relies on that underlying Stream returns proper bytes. So I guess it is synchronization issue of underlying data because server response speed caused failure, although you don't think so.

Please ensure that your networking layer correctly implement, for example:

  1. Client ant server uses dedicated connection per session.
  2. Server synchronize writing its response to the buffer per session.
  3. Client synchronize reading from the response buffer per session.

Thanks!

from msgpack-cli.

yfakariya avatar yfakariya commented on July 18, 2024

Close because this Q&A is staled.

from msgpack-cli.

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.