birknilson/tornado — Issue #1: Reduce repetitive handling of socket reads in IOStream to private method
Author: birknilson
Created: 2012-02-02 00:07:49+00:00
State: open
Labels: refactoring

The methods read_until, read_until_regex and read_bytes all share identical copies of code to read from the socket, assign callback (context safe) and assert that stream is not already reading. This can be moved to a private method in order to reduce repetitive code and ease maintainability.