oweidner/air — Issue #1: Streaming of certain output doesn't work
Author: oweidner
Created: 2011-10-20 15:58:02+00:00
State: open

For example, if ping fails for whatever reason, it looks like this on the console:

ping google.com
PING google.com (74.125.47.103): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3

But: the output doesn't show up in the exchange untile the process terminates. It seems that readline() fails in air-run. Regular ping output streams just fine:

'proc.iJRHbl.output':"timestamp: None stderr: True, stdout True, streamfragment: 'PING lsu.edu (130.39.253.217): 56 data bytes\\n'"
'proc.iJRHbl.output':"timestamp: None stderr: True, stdout True, streamfragment: '64 bytes from 130.39.253.217: icmp_seq=0 ttl=61 time=0.594 ms\\n'"
'proc.iJRHbl.output':"timestamp: None stderr: True, stdout True, streamfragment: '64 bytes from 130.39.253.217: icmp_seq=1 ttl=61 time=0.438 ms\\n'"
'proc.iJRHbl.output':"timestamp: None stderr: True, stdout True, streamfragment: '64 bytes from 130.39.253.217: icmp_seq=2 ttl=61 time=0.532 ms\\n'"
'proc.iJRHbl.output':"timestamp: None stderr: True, stdout True, streamfragment: '64 bytes from 130.39.253.217: icmp_seq=3 ttl=61 time=0.646 ms\\n'"