Use stream.set_nodelay method to set TCP socket options
Set maximum message and stream buffer sizes
Hook in on-close callback stub