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

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P3
    • None
    • Affects Version/s: 1.4.0
    • Component/s: 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");
      _____________________

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: