code review request: 7122169: TcpTimeout fail for various reasons
    Alan Bateman 
    Alan.Bateman at oracle.com
       
    Wed Dec 21 14:08:15 UTC 2011
    
    
  
On 21/12/2011 01:52, Weijun Wang wrote:
>
> :
>
> I'm not sure. The time consumed is from Socket::setSoTimeout(). Do you 
> know if it's connected to clock time (currentTimeMillis) or elapsed 
> time (nanoTime)?
>
I think this timeout is specified by elapsed but the implementations use 
JVM_CurrentTimeMillis or in the case of Windows, a timeout provided by 
the kernel. My guess is that if this test is changed to use 
System.currentTimeMillis that it may be more robust but you will need to 
try it.
-Alan
    
    
More information about the security-dev
mailing list