Skip to content

Windows: improve usability for low-level IOCP operations #26

Open

Description

@njsmith
  • Is wait_overlapped the best way to handle "call a function that takes an OVERLAPPED"?
  • Make wait_overlapped return the information in OVERLAPPED_ENTRY, like dwNumberOfBytesTransferred
  • Document everything

Haven't really been thought through, need a good look over

Activity

  1. changed the title [-]Design: kqueue "power user" interface[/-] [+]Design: kqueue and windows "power user" interfaces[/+] on Feb 13, 2017
  2. njsmith commented on Feb 13, 2017

    @njsmith
    MemberAuthor

    One definite change is that instead of returning a new UnboundedQueue, these should have you pass in an existing UnboundedQueue. This allows multiple event streams to be multiplexed onto a single queue. (In the Windows case this also means our completion event objects should include the completion key as a field.) See #40.

  3. auvipy commented on Feb 6, 2019

    @auvipy

    is there anything trio could be benefitted from this thread?

  4. njsmith commented on Feb 6, 2019

    @njsmith
    MemberAuthor

    @auvipy Sorry, I don't quite understand. Are you asking whether there's anything you can do to help with this, or...?

  5. auvipy commented on Feb 6, 2019

    @auvipy

    yes, and if there is anything important we get from the problem described here? I am considering trio as an option beside asyncio to be used as the foundational event loop library for celery 5 :)

  6. auvipy commented on Feb 6, 2019

    @auvipy

    so knowing the internals of trio, and its potential API breakage is very important to me for considering trio very seriously :)

  7. njsmith commented on Feb 6, 2019

    @njsmith
    MemberAuthor

    @auvipy ah, I see!

    This particular issue is about some very low-level APIs, that are used to get direct access to exotic features of the underlying OS – like if you need to access Windows's IOCP interfaces directly for some reason, or the raw BSD kqueue APIs. They're useful for some kinds of projects, but most people will never touch them. (Asyncio doesn't give you any way to use these APIs at all ;-).) For some more details on what this might look like for kqueue, see #578 and #579. For more background on Windows, see #52. If this still sounds like something you're interested in, I can say more :-). I doubt this will be very relevant to celery though.

    About the more general questions about Trio's internals, potential API breakage, and whether Trio would be a good fit for celery: I would love to talk about this! (And the short answer is: it depends on your time frame.) But, I would rather not have that discussion here on this issue, because it will be confusing later :-). I have two ideas, take your pick:

    Thanks!

  8. auvipy commented on Feb 6, 2019

    @auvipy

    thanks a lot for your detailed response :) I will do what seems more appropriate and right place to do :)

  9. njsmith commented on Feb 20, 2019

    @njsmith
    MemberAuthor

    I wrote another brain dump about these here: #937 (comment)

  10. changed the title [-]Design: kqueue and windows "power user" interfaces[/-] [+]Windows: should we improve monitor_completion_queue()?[/+] on Mar 12, 2019
  11. oremanj commented on Mar 12, 2019

    @oremanj
    Member

    The kqueue case seems adequately covered by #578 so I'm going to repurpose this issue for just the Windows side.

  12. changed the title [-]Windows: should we improve monitor_completion_queue()?[/-] [+]Windows: think about usability for IOCP operations[/+] on Mar 12, 2019
  13. changed the title [-]Windows: think about usability for IOCP operations[/-] [+]Windows: improve usability for low-level IOCP operations[/+] on Mar 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions