• Steve Jones's avatar
    Update to streaming read loop to use delimited stream mode. · 5d275bc7
    Steve Jones authored
    1) read newlines until a digit appears
    2) read rest of digits until another new line appears
    3) read next status object
    4) repeat
    
    -improved speed over trunk version
    -simplify loop logic
    -added condition for "self.running and not resp.isclosed()" during each read-loop stage 
    5d275bc7
streaming.py 7.66 KB