add socket options to allow socket recovery and speed up streaming