sp_term & SO_SOL_SOCKET options improved