xpra icon
Bug tracker and wiki

Ticket #1387: ivshmem-size-workarounds.patch

File ivshmem-size-workarounds.patch, 1.4 KB (added by Antoine Martin, 3 years ago)

workarounds for the small ivshmem size

  • xpra/net/mmap_pipe.py

     
    4646            if os.path.exists(filename):
    4747                fd = os.open(filename, os.O_EXCL | os.O_RDWR)
    4848                mmap_size = os.path.getsize(mmap_filename)
    49                 #mmap_size = 4*1024*1024    #size restriction needed with ivshmem
     49                mmap_size = 4*1024*1024    #size restriction needed with ivshmem
    5050                delete = False
    5151                log.info("Using existing mmap file '%s': %sMB", mmap_filename, mmap_size//1024//1024)
    5252            else:
  • xpra/server/source.py

     
    925925                        self.mmap.close()
    926926                        self.mmap = None
    927927                        self.mmap_size = 0
    928                     elif self.mmap_size<min_mmap_size:
     928                    elif self.mmap_size<min_mmap_size and False:
    929929                        mmaplog.warn("Warning: client supplied mmap area is too small, discarding it")
    930930                        mmaplog.warn(" we need at least %iMB and this area is %iMB", min_mmap_size//1024//1024, self.mmap_size//1024//1024)
    931931                        self.mmap.close()