ericmann / speed-logger

Log network speed to a CSV routinely.
28 stars 20 forks source link

only setTimeout on child close #6

Closed cameronr closed 5 years ago

cameronr commented 5 years ago

on.stdout/stderr can be called multiple times so only call setTimeout when the child closes its pipes.

Technically, the code should buffer the results of on.stdout (since you don't know if you get the full response) but I'm too lazy to change it.