'set default sockopts as attributes'

def _set_attr_opt(self, name, opt, value):

    if (name in constants.ctx_opt_names):
        return self.set(opt, value)
    else:
        self.sockopts[opt] = value
