Changing socket options now works properly.