Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Dec 1, 2014
Commits on Oct 21, 2014
  1. fs: add pyuv.fs.access function

    authored
  2. core: remove unused define

    authored
  3. fs: rename readdir to scandir

    authored
Commits on Sep 19, 2014
  1. process: make Process.spawn a class method

    authored
    proc = Process(loop)
    proc.spawn(args, ...)
    
    becomes:
    
    proc = Process.spawn(loop, args, ...)
    
    There is a slight anymmetry in uv_process_t handles: there is no
    uv_process_init function, it's internal and called by uv_spawn at the
    begining. So, we cannot initialize our handle in Process.__init__, only
    when spawn is called, which means that a workaround was required not to
    call uv_close in case a process object was initialized (in Python) but
    never spawned.
    
    This should make the interaction simpler.
Commits on Sep 16, 2014
  1. tcp, pipe, udp: add send_buffer_size and receive_buffer_size

    authored
    They are rw properties which can be used to adjust the send and receive
    buffers respectively.
Commits on Aug 31, 2014
  1. @geertj
  2. @geertj

    udp: add fileno() method

    geertj authored
  3. @geertj

    stream: add fileno() method

    geertj authored
Commits on Aug 27, 2014
  1. core: fix subclassing Loop

    authored
    When Loop was subclassed, Subclass.default_loop() still returned a Loop
    instance, even if it wasn't created before. This patch fixes that.
    
    The avid readed may have noticed that this patch also removes the atexit
    handler which decref'd the default loop. Upon reading the documentation,
    it turns out is not safe to use any Python APIs at that stage, we just
    never got bitten by it until now, by chance.
Commits on Aug 3, 2014
Commits on Jul 24, 2014
  1. common: fix compilation warning

    authored
Commits on Jul 21, 2014
  1. stream: use a default backlog size of 511

    authored
    Kernels usually round it up to the next power of 2, that is, 512. More
    on this: http://blog.dubbelboer.com/2012/04/09/syn-cookies.html
Commits on Jul 13, 2014
  1. udp: refactor UDP.send / sendlines

    authored
    Fold both functions into a single one, which only supports bytes and
    sequences of bytes (where bytes == anything implementing the buffer
    protocol, that includes bytearray and memoryview)
    
    uv buffers are allocated on stack since uv_udp_send copuies them, so we
    save a malloc there
  2. streams: refactor Stream.write / writelines and Pipe.write2

    authored
    - Use a single function: write, which accepts only bytes or sequences of
      bytes (where bytes == any object implementing the buffer protocol,
      including bytearray and memoryview)
    - Pipe.write accepts an optional argument 'send_handle', which makes it
      behave as the previous write2 function
    - uv buffers are allocated on stack, sine uv_write copies them, so we
      also save a malloc there
Commits on Jul 11, 2014
  1. @geertj

    core: fix access of potentially freed memory

    geertj authored committed
    Found with python compiled with --with-pydebug
    
    saghul: if the PYUV__PYREF flag is set then it's guaranteed that the
    object has a refcount >= 2. If the the flag is not set, however, it's
    possible that we arrive here with a refcount of 1, then the first
    Py_DECREF would free the object, and immediately after we'd check the
    flags of such dead object.
    
    I guess this never blew up IRL because nobody overwrites the memory, but
    when running with a debug build, memory is overwritten, precisely to
    help catch this kind of bugs. Nice catch @geertj!
  2. @geertj

    core: fix refcount bug in func_excepthook()

    geertj authored committed
    Found with python compiled with --with-pydebug.
Commits on Jul 10, 2014
Commits on Jul 4, 2014
  1. util: add getrusage()

    authored
Commits on Jul 3, 2014
Commits on Jul 1, 2014
  1. @geertj

    getaddrinfo(): support service names

    geertj authored committed
Commits on Jun 29, 2014
  1. util: add getnameinfo support

    authored
Commits on Jun 18, 2014
Commits on Jun 16, 2014
  1. barrier: Barrier.wait returns a boolean now

    authored
    It returns True to the sanitizing thread (just one), False to the rest.
    Useful for cleanup.
Commits on Jun 11, 2014
Commits on Jun 9, 2014
  1. @geertj

    Fix refcounting bug in StdIO

    geertj authored
Commits on May 21, 2014
Something went wrong with that request. Please try again.