Code Monkey home page Code Monkey logo

Comments (5)

ondrej-fabry avatar ondrej-fabry commented on July 20, 2024

To be honest, I am not really sure what you are asking here. The request and replies are matched by the context field in the message itself. Each Channel or Stream has unique context number which is used in the request and VPP replies using the same context, that is how GoVPP client matches request/reply even if they are processed out of order.

from govpp.

fatelei avatar fatelei commented on July 20, 2024

i using govpp, i found this error missing binary API reply with sequence number. Because of vpp is single thread server, it handle the request one by one, so i think the vpp will echo the request number in order. I want to known what kind of situation will lead this error.

from govpp.

fatelei avatar fatelei commented on July 20, 2024

close it, i will check vpp is single thread or multi thread. i

from govpp.

ondrej-fabry avatar ondrej-fabry commented on July 20, 2024

Could you share the code you are using to send/receive requests?

from govpp.

ondrej-fabry avatar ondrej-fabry commented on July 20, 2024

This error message occurs when you receive a reply that has higher sequence number than expected. The sequence number is actually part of the context field mentioned above and each Channel contains it's own sequence number which is increased every time you send request. The RequestContext you get from SendRequest will be used to check the sequence number in the reply you get to verify it matches. However if you use the Channel in multiple goroutines or if you send multiple requests simultaneously before receiving reply from the previous request you will run into this error.

from govpp.

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.