Fixes and improvements like connection timeout, idle timeout, ping, etc.