Make use of the new sockopts variable.