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

Linux Socket channel set options: sc.socket().setSendBufferSize(x) fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 1.4.0
    • core-libs
    • generic
    • generic

      Linux Socket channel set options: can't sc.socket().setSendBufferSize(x);

      The attached test case passes on Windows and Solaris, but
      fails on linux platforms. (tested on redhat 6.2, turbo linux,
      mandrake 7.1).

      excerpt from test:
      ____________________

      InetSocketAddress isa
      = new InetSocketAddress(InetAddress.getByName(HOST),
      PORT);
      SocketChannel sc = SocketChannel.open();
      //get default sendBufferSize
      int y = sc.socket().getSendBufferSize();
             System.out.println(" default buffer size = " + y);

      for (int x = 1; x < 1000; x++) {
      sc.socket().setSendBufferSize(x);
      if (sc.socket().getSendBufferSize() != x) {
      failures++;
      System.out.println("testcase#3 failed setSendBufferSize");
      _____________________

            mmcclosksunw Michael Mccloskey (Inactive)
            kpolomsksunw Krystyna Polomski (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: