def _setup_socket_buffers(self):
        # Try to set the buffer size to 4M, 2M, 1M, and 512K
        for buff_size in (4*1024**2,2*1024**2,1024**2,512*1024):
            try:
                self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF, buff_size)
                return
            except:
                pass
Create the threadpool accessible with callFromThread.
dataset/ETHPy150Open kiip/statsite/statsite/collector.py/UDPCollectorSocketServer._setup_socket_buffers--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/internet/base.py/ReactorBase._initThreadPool