-
Bug
-
Resolution: Fixed
-
P2
-
1.3.1_18, 1.4.2_11, 5.0u7, 5.0u8, 6
-
b85
-
generic, x86
-
windows_vista
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2138086 | 5.0u10 | Chris Hegarty | P2 | Resolved | Fixed | b01 |
JDK-2141377 | 1.4.2_14 | Sean Coffey | P2 | Resolved | Fixed | b01 |
JDK-2158745 | 1.3.1_22 | Unassigned | P1 | Closed | Won't Fix |
You can test this easily by calling Socket.setTcpNoDelay() followed by Socket.getTcpNoDelay(). The value returned from the get will not match that passed to the set, e.g
..\bin\java TestTcpNoDelay
Get TCP_NODELAY = true
Set TCP_NODELAY to false
Get TCP_NODELAY = true
This is a native vista issue and can be reproduced by a simple native testcase (attached, TestSOKEEPALIVE.c, TestTCPNODELAY). This needs to be fixed in the vista platform.
Native Tests show:
T:\6358574>TestTCPNODELAY
Get TCP_NODELAY = 4198656
Set TCP_NODELAY = 1
Get TCP_NODELAY = 4198657
T:\6358574>TestSOKEEPALIVE
Get SO_KEEPALIVE = 5120
Set SO_KEEPALIVE = 1
Get SO_KEEPALIVE = 5121
This is causing the following jck failures (7):
api/java_net/Socket/descriptions.html#setTcpNoDelay
api/java_net/Socket/descriptions.html#setKeepAlive
api/javax_net/SocketFactory/index.html#SocketFactory001[SocketFactory001]
api/javax_net/SocketFactory/index.html#SocketFactory002[SocketFactory002]
api/javax_net/SocketFactory/index.html#SocketFactory003[SocketFactory003]
api/javax_net/SocketFactory/index.html#SocketFactory004[SocketFactory004]
api/javax_net/SocketFactory/index.html#SocketFactory005[SocketFactory005]
- backported by
-
JDK-2138086 VISTA: Socket setTcpNoDelay & setKeepAlive working incorrectly
- Resolved
-
JDK-2141377 VISTA: Socket setTcpNoDelay & setKeepAlive working incorrectly
- Resolved
-
JDK-2158745 VISTA: Socket setTcpNoDelay & setKeepAlive working incorrectly
- Closed
- duplicates
-
JDK-6357845 JCK-runtime-14a Some java_net tests fail for 142_11b1 on Windows Vista [windows socket exceptions]
- Closed
-
JDK-6433254 JCK-Runtime-15a SocketFactory Tests output "setTcpNoDelay failed" on latest Vista Build 5384
- Closed
-
JDK-2138000 JCK-runtime-14a Some java_net tests fail for 142_11b1 on Windows Vista [windows socket exceptions]
- Closed
- relates to
-
JDK-6367781 Socket.setTcpNoDelay() doesnt set property on windows Vista amd-64
- Closed