Stream: session completion check code moved to a separate function.
Stream: session completion check code moved to a separate function.

The code refactored to simplify the ngx_stream_proxy_process() function
and facilitate adding new session termination conditions.

hy0kl/nginx,hy0kl/nginx,hy0kl/nginx