def match_options(self, options):
        for name in self.options:
            if options.has_key(name):
                if name == 'blksize':
                    # We can accept anything between the min and max values.
                    size = int(self.options[name])
                    if size >= MIN_BLKSIZE and size <= MAX_BLKSIZE:
                        log.debug("negotiated blksize of %d bytes", size)
                    else:
                        raise TftpException, "blksize %s option outside allowed range" % size
                elif name == 'tsize':
                    size = int(self.options[name])
                    if size < 0:
                        raise TftpException, "Negative file sizes not supported"
                else:
                    raise TftpException, "Unsupported option: %s" % name
        return True
Ensures that Varnish is restarted on cleanup phase.
dataset/ETHPy150Open msoulier/tftpy/tftpy/TftpPacketTypes.py/TftpPacketOACK.match_options--crossover with--dataset/ETHPy150Open python-provy/provy/provy/more/debian/cache/varnish.py/VarnishRole.ensure_restart