Git Product home page Git Product logo

Comments (7)

Thomasdezeeuw avatar Thomasdezeeuw commented on June 15, 2024

Can you reproduce the error with Mio types (not Tokio)?

from mio.

Sytten avatar Sytten commented on June 15, 2024

If you look at the other issue someone did indeed reproduce it only with mio

from mio.

Thomasdezeeuw avatar Thomasdezeeuw commented on June 15, 2024

If you look at the other issue someone did indeed reproduce it only with mio

Then why do you include an example using Tokio in an issue for Mio?

from mio.

Sytten avatar Sytten commented on June 15, 2024

I am sorry this is the first time I try to contribute to the project, the line between the projects were still a bit blurry to me. It was just a simpler example for me to use. I figured I could try to help since the original issue didn't get much traction.

from mio.

Sytten avatar Sytten commented on June 15, 2024

Since we are not sure who's fault it is, I will close the issue for now. If someone has the same problem feel free to re-open with a proper mio example.

from mio.

Thomasdezeeuw avatar Thomasdezeeuw commented on June 15, 2024

I left a comment in the Tokio thread, but if there is a problem with Mio then I still like to know, so feel free to reopen when/if it's clear it a problem with Mio.

from mio.

Sytten avatar Sytten commented on June 15, 2024

I commented back, unsure if I have enough knowledge to create a reproduction. I didn't see any test around peek in mio though, so at the very least adding a test to confirm that mio is working as intended would be good. That would need to check that:

  • There is a first readiness event on first data
  • Test does a peek -> Receives data
  • Test does a read -> Receives data
  • Test does a peek -> Receives WouldBlock
  • New data is in the socket
  • There is no readiness event sent by mio

If and only if this is the case for all platform would I consider mio "bug free". I highly suspect that the last check will fail on unix platforms, but maybe not.

from mio.

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.