Stream: set action before each recv/send while proxying. Now it's clear from log error message if the error occurred on client or upstream side.