[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-serviceability-dev
Subject:    Re: RFR: JDK-8249550: jdb should use loopback address when not using remote agent
From:       Chris Plummer <chris.plummer () oracle ! com>
Date:       2020-07-23 20:05:17
Message-ID: 5b200434-6181-1478-6423-70cd9150ce56 () oracle ! com
[Download RAW message or body]

Hi Alex,

I'm no expert in this area, but the changes appear to do what you 
describe (use the loopback address), so thumbs up.

thanks,

Chris

On 7/21/20 3:04 PM, Alex Menkov wrote:
> Hi all,
>
> please review the fix for
> https://bugs.openjdk.java.net/browse/JDK-8249550
>
> webrev:
> http://cr.openjdk.java.net/~amenkov/jdk16/jdb_loopback/webrev/
>
> some background:
> https://bugs.openjdk.java.net/browse/JDK-8041435 made default 
> listening on loopback address.
> Later https://bugs.openjdk.java.net/browse/JDK-8184770 added handling 
> of "*" address to listen on all addresses, but it didn't fixed 
> "default" startListening() method (used by jdb through 
> SunCommandLineLauncher).
>
> The method called startListening(String localaddress, int port) with 
> localaddress == null, but this method for null localladdress starts 
> listening on all addresses (i.e. handle null value as "*").
> The fix changes it to startListening(String address) which handles 
> null address the same way as JDI socket connector does (i.e. listens 
> on loopback address only)
>
> --alex

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic