Skip to content
Commits on Mar 4, 2015
  1. @digirave
Commits on Jun 14, 2012
  1. Merge pull request #1 from samv/master

    Fix issue with the interactions between push_back_read and the "ready to read" flag.
    committed Jun 14, 2012
  2. Wake and sleep events with "push back" data

    This module's watch_read function, which is monkeypatched into
    Danga::Socket, sets up an AnyEvent io event watcher on reads; but in
    the case where synthetic reads ("push_back_read") are in effect, this
    event will never fire.  This case can be detected, and the bit flipped
    as in a previous change.  It also has a converse, which is to clear it
    in the same situations.
    Sam Vilain committed Jun 12, 2012
Commits on May 26, 2012
  1. @samv

    Make sure push_read_back results in the event being ready.

    If you push back read data from a socket and it is subsequently idle,
    you need to push the data back to a buffer and mark the event as having
    data ready to read somehow.  There is already a facility for Danga's
    PostEventLoop() function to be called, which is supposed to clear these
    synthetic read events.  However, a bit wasn't set on the tasks' list of
    interesting events, and this caused the pushed back data not to 'wake
    up' the task and continue.  So, set the bit in the right place.
    samv committed with May 25, 2012
Commits on Aug 13, 2009
Something went wrong with that request. Please try again.