Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2286

Container.selectable(EventInjector) in python on Windows causes "OSError: [WinError 10038] An operation was attempted on something that is not a socket", eliminating use of custom events

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • proton-c-0.32.0
    • None
    • python-binding
    • None
    • Windows 10, python 3.7-3.8

    Description

      First, this hinders examples (db_recv.py and others using EventInjector) from running.

      Second, most important, this doesn't let one have user-defined events in the built-in event loop, which limits its interactivity. Is there another straightforward asynchronous way to send messages on demand?

      Something similar occurred in python asyncio before 3.8, when they made theĀ ProactorEventLoop default on Windows instead of SelectorEventLoop, as select() on windows works only with sockets.

      Also, could someone please integrate proton with python asyncio which is standard convenient way of asynchronous execution in python? Or at least provide an example of using asyncio event loop like with tornado (proton_tornado.py).

      Thank you.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alexorex alexey
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: