Git Product home page Git Product logo

grpc-kit-stream-repro's Introduction

This is a reproduction of a couple of bugs I ran into with grpc_kit. These are basically just extracting the routeguide_examples and isolating it to a purely server streaming indefinitely call. Fire up the client and the server and the following things can be witnessed:

  1. Eventually the client stops receiving messages, even if they're being sent by the server
  2. If you terminate the client with ctrl-c or similar, the server will keep "sending" to the stream

I dug through all the layers I could earlier to no avail and I couldn't figure out what was going on. I ended up near / within the DS9 calls and at that point I couldn't figure out what was going on. I was also debugging the raw sockets at that point.

This is a much paired down easily reproduction of a bug I had. In that case the server impl was not grpc_kit (entirely diff language) but the problem with the client just "not receiving after a while" was present. In that case there was some extra debug:

  • When we started the call I could see data being received by the rx buffers
  • Eventually it just stopped receiving more data at the raw socket level (found using ss -ti)
  • This was irrelevant of if I was iterating messages off the stream or not

It's harder to do a reproduction of that one since it involves a lot more languages and everything. The "default" gRPC client library was fine there and didn't exhibit these issues. I'm trying to move to grpc_kit so I can use griffin, but the client bug means I can't since grpc and grpc_kit can't exist in the same codebase.

grpc-kit-stream-repro's People

Contributors

brocktimus avatar

Watchers

 avatar  avatar

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.