Giter Club home page Giter Club logo

Comments (4)

DaveRandom avatar DaveRandom commented on May 21, 2024

It is important to note that not all architectures report errors via $except, some will only report out-of-band data.

If a socket appears in $except, one also needs to check whether it appears in $read and whether it is feof() before one can reasonably determine what to do with it, and whether it represents an error condition or not.

On Windows if a packet is received with the RST bit set or if a send operation times out, the socket will appear in $except. I also tested this on Fedora last night, and there that is not the case - it only appears in $read when an RST is received (and feof() is true), and it doesn't appear anywhere when a send operation times out, but feof() returns true.

from reactphp.

igorw avatar igorw commented on May 21, 2024

This will most likely result in some additions to the LoopInterface. We need to ensure that libev and libevent support it properly.

from reactphp.

igorw avatar igorw commented on May 21, 2024

ext-libevent has a EV_TIMEOUT constant that can be used for event_add. Not sure about libev yet.

from reactphp.

clue avatar clue commented on May 21, 2024

Closing this due to a lack of feedback, as we can not reproduce any issues here. If anybody happens to to be able to reproduce this, please come back with more details and we can reopen this 👍

from reactphp.

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.