Skip to content

Instantly share code, notes, and snippets.

@mreiferson
Created May 9, 2013 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mreiferson/5548381 to your computer and use it in GitHub Desktop.
Save mreiferson/5548381 to your computer and use it in GitHub Desktop.
send_ready
def send_ready(reader, conn, count):
if (reader.total_ready_count + count) > reader.max_in_flight:
return
conn.send_ready(count)
conn.rdy_count = count
reader.total_ready_count += count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment