changed default value of socket options to nil as per a discussion with portertech