1. 28 Ock, 2018 1 kayıt (commit)
  2. 19 Ara, 2017 1 kayıt (commit)
  3. 18 Ara, 2017 1 kayıt (commit)
  4. 15 Ara, 2017 1 kayıt (commit)
  5. 13 Ara, 2017 1 kayıt (commit)
  6. 11 Ara, 2017 1 kayıt (commit)
  7. 28 Kas, 2017 1 kayıt (commit)
  8. 19 Eki, 2017 1 kayıt (commit)
  9. 01 Eyl, 2017 1 kayıt (commit)
    • Victor Stinner's avatar
      bpo-31250, test_asyncio: fix dangling threads (#3252) · 16432bea
      Victor Stinner yazdı
      * Explicitly call shutdown(wait=True) on executors to wait until all
        threads complete to prevent side effects between tests.
      * Fix test_loop_self_reading_exception(): don't mock loop.close().
        Previously, the original close() method was called rather than the
        mock, because how set_event_loop() registered loop.close().
      16432bea
  10. 04 Kas, 2016 1 kayıt (commit)
  11. 17 Ara, 2015 1 kayıt (commit)
    • Yury Selivanov's avatar
      asyncio: Skip getaddrinfo if host is already resolved. · d5c2a621
      Yury Selivanov yazdı
      getaddrinfo takes an exclusive lock on some platforms, causing clients to queue
      up waiting for the lock if many names are being resolved concurrently. Users
      may want to handle name resolution in their own code, for the sake of caching,
      using an alternate resolver, or to measure DNS duration separately from
      connection duration. Skip getaddrinfo if the "host" passed into
      create_connection is already resolved.
      
      See https://github.com/python/asyncio/pull/302 for details.
      
      Patch by A. Jesse Jiryu Davis.
      d5c2a621
  12. 16 Kas, 2015 1 kayıt (commit)
  13. 29 Ock, 2015 1 kayıt (commit)
  14. 21 Ock, 2015 1 kayıt (commit)
  15. 15 Ock, 2015 2 kayıt (commit)
  16. 26 Ara, 2014 1 kayıt (commit)
    • Victor Stinner's avatar
      Issue #22926: In debug mode, call_soon(), call_at() and call_later() methods of · 956de691
      Victor Stinner yazdı
      asyncio.BaseEventLoop now use the identifier of the current thread to ensure
      that they are called from the thread running the event loop.
      
      Before, the get_event_loop() method was used to check the thread, and no
      exception was raised when the thread had no event loop. Now the methods always
      raise an exception in debug mode when called from the wrong thread. It should
      help to notice misusage of the API.
      956de691
  17. 11 Ara, 2014 1 kayıt (commit)
  18. 17 Tem, 2014 1 kayıt (commit)
    • Victor Stinner's avatar
      Python issue #21645, Tulip issue 192: Rewrite signal handling · fe5649c7
      Victor Stinner yazdı
      Since Python 3.3, the C signal handler writes the signal number into the wakeup
      file descriptor and then schedules the Python call using Py_AddPendingCall().
      
      asyncio uses the wakeup file descriptor to wake up the event loop, and relies
      on Py_AddPendingCall() to schedule the final callback with call_soon().
      
      If the C signal handler is called in a thread different than the thread of the
      event loop, the loop is awaken but Py_AddPendingCall() was not called yet. In
      this case, the event loop has nothing to do and go to sleep again.
      Py_AddPendingCall() is called while the event loop is sleeping again and so the
      final callback is not scheduled immediatly.
      
      This patch changes how asyncio handles signals. Instead of relying on
      Py_AddPendingCall() and the wakeup file descriptor, asyncio now only relies on
      the wakeup file descriptor. asyncio reads signal numbers from the wakeup file
      descriptor to call its signal handler.
      fe5649c7
  19. 12 Tem, 2014 1 kayıt (commit)
    • Victor Stinner's avatar
      asyncio: sync with Tulip · e912e652
      Victor Stinner yazdı
      * Tulip issue #183: log socket events in debug mode
      
        - Log most important socket events: socket connected, new client, connection
          reset or closed by peer (EOF), etc.
        - Log time elapsed in DNS resolution (getaddrinfo)
        - Log pause/resume reading
        - Log time of SSL handshake
        - Log SSL handshake errors
        - Add a __repr__() method to many classes
      
      * Fix ProactorEventLoop() in debug mode. ProactorEventLoop._make_self_pipe()
        doesn't call call_soon() directly because it checks for the current loop
        which fails, because the method is called to build the event loop.
      
      * Cleanup _ProactorReadPipeTransport constructor. Not need to set again
        _read_fut attribute to None, it is already done in the base class.
      e912e652
  20. 17 Haz, 2014 1 kayıt (commit)
  21. 26 Şub, 2014 1 kayıt (commit)
  22. 19 Şub, 2014 1 kayıt (commit)
  23. 18 Şub, 2014 1 kayıt (commit)
  24. 11 Şub, 2014 1 kayıt (commit)
  25. 19 Şub, 2014 1 kayıt (commit)
  26. 18 Şub, 2014 1 kayıt (commit)
  27. 11 Şub, 2014 1 kayıt (commit)
  28. 09 Şub, 2014 1 kayıt (commit)
  29. 31 Ock, 2014 1 kayıt (commit)
  30. 25 Ock, 2014 2 kayıt (commit)
    • Victor Stinner's avatar
      asyncio: Don't export BaseEventLoop, BaseSelectorEventLoop nor · 128ee220
      Victor Stinner yazdı
      BaseProactorEventLoop
      
      Import them from submodules if you really need them.
      128ee220
    • Victor Stinner's avatar
      Update asyncio from the Tulip project · 8dffc456
      Victor Stinner yazdı
      Major changes:
      
      - StreamReader.readexactly() now raises an IncompleteReadError if the
        end of stream is reached before we received enough bytes, instead of
        returning less bytes than requested.
      
      - Unit tests use the main asyncio module instead of submodules like events
      
      - _UnixWritePipeTransport now also supports character devices, as
        _UnixReadPipeTransport. Patch written by Jonathan Slenders.
      
      - Export more symbols: BaseEventLoop, BaseProactorEventLoop,
        BaseSelectorEventLoop, Queue and Queue sublasses, Empty, Full
      8dffc456
  31. 04 Ara, 2013 1 kayıt (commit)
  32. 20 Eki, 2013 1 kayıt (commit)
  33. 18 Eki, 2013 1 kayıt (commit)
  34. 17 Eki, 2013 2 kayıt (commit)