fix resending requests while connection is paused
fixed variable name
Don't send anything after a stream error any more