def process_request(self, request):
        if 'conn' not in request.COOKIES:
            return

        conn_id = int(request.COOKIES['conn'])
        request.connection = settings.BEANSTALK_SERVERS[conn_id]
dataset/ETHPy150Open andreisavu/django-jack/jack/beanstalk/multiple_beanstalk.py/Middleware.process_request/original