Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def patch_tornado():
    from tornado.websocket import WebSocketProtocol13
    from wsaccel.xormask import XorMaskerSimple

    def _apply_mask(self, mask, data):
        masker = XorMaskerSimple(mask)
        return masker.process(data)

    WebSocketProtocol13._apply_mask = _apply_mask
        


src/w/s/wsaccel-HEAD/bench/bench_tornado.py   wsaccel(Download)
            if not patched:
                patched += 1
                wsaccel.patch_tornado()
                TornadoClient(self.url)