Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4481573

Scatter/gather methods do not hide underlying O/S readv/writev limits

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • core-libs
    • None
    • beta2
    • generic
    • generic

      Date: Wed, 18 Jul 2001 20:47:25 -0400 (EDT)
      From: ###@###.###
      To: ###@###.###, ###@###.###
      Subject: writev limitations

      Also, I recently noticed that at least on Solaris, because writev()
      only supports up to 16 (IOV_MAX in /usr/include/limit.h) buffers in the
      iov array, and the NIO socket implementation doesn't attempt to
      insulate Java code from that limitation, an attempt to invoke
      GatheringByteChannel.write with a ByteBuffer[] of length greater than
      16 will cause an IOException with a detail of "Invalid argument"
      (strerror(EINVAL)). It would seem desirable for the NIO implementation
      to take care of making such invocations work-- 16 doesn't seem like an
      unreasonably high number of buffers to write at once. (I assume that
      the same issues applies to readv() and ScatteringByteChannel.read too.)

            mmcclosksunw Michael Mccloskey (Inactive)
            mr Mark Reinhold
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: