Giter Site home page Giter Site logo

Comments (2)

loudej avatar loudej commented on September 28, 2024

Notes copied from email thread

So - the four actual methods would be:

Sync Write: write(data, null)

  • if host can send data to kernel without entering a wait state: it should send data and return false
  • if host can buffer data and send it in the background: it should buffer data and return true
  • if host only knows how to do blocking writes: it should send data and return false

Async Write: write(data, callback)

  • if host can send data to kernel without entering a wait state: it should send data and return false
  • if host can perform async write operation: if should send data async, return true, and invoke callback when complete
  • if host only knows how to do blocking write: it should send data and return false

Sync Flush: write(null, null)

  • if host is not buffering data and no async writes are outstanding: it should return false immediately
  • if host can flush buffered data and wait for outstanding async writes: it should block until that is complete and return false
  • if host is buffering and cannot block threads for io to complete: it should return true immediately (to indicate the data remains outstanding)

Async Flush: write(null, callback)

  • if host is not buffering data and no async writes are outstanding: it should return false
  • if host has buffered data or outstanding async writes: it should return true and invoke callback when those are complete

from owin.dll.

loudej avatar loudej commented on September 28, 2024

See also discussion thread https://groups.google.com/d/topic/net-http-abstractions/k7JQP_Rk57Y/discussion

from owin.dll.

Related Issues (17)

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.