def apply_patch(self):
        """
        Fix default socket lib to handle client disconnection while receiving data (Broken pipe)
        """
        if sys.version_info >= (3, 0):
            # No patch for python >= 3.0
            pass
        else:
            from .patch.socket import socket as patch
            socket.socket = patch
Fix default socket lib to handle client disconnection while receiving data (Broken pipe)