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");
_____________________
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");
_____________________