stream: more tracing.
socket: get socket recv working with timeouts.