RE: [11u] RFR: 8183369: RFC unconformity of HttpURLConnection with proxy

2020-03-24 Thread Langer, Christoph
Hi Alex, looks good now. Cheers Christoph > -Original Message- > From: Alex Kashchenko > Sent: Dienstag, 24. März 2020 19:09 > To: Langer, Christoph ; jdk-updates- > d...@openjdk.java.net > Cc: net-dev@openjdk.java.net > Subject: Re: [11u] RFR: 8183369

RE: [11u] RFR: 8183369: RFC unconformity of HttpURLConnection with proxy

2020-03-24 Thread Langer, Christoph
Hi Alex, I think this looks good overall. There's one line in test/jdk/java/net/HttpURLConnection/HttpURLConWithProxy.java, line 85, where you got the indentation wrong. Please check and fix that. Best regards Christoph > -Original Message- > From: jdk-updates-dev On > Behalf Of Alex

RE: RFR 8129841 Update comment for Java_java_net_Inet6AddressImpl_getHostByAddr

2020-03-04 Thread Langer, Christoph
Hi Vipin, I'm forwarding this to net-dev where it should be reviewed. Best regards Christoph > -Original Message- > From: core-libs-dev On Behalf > Of Vipin Mv1 > Sent: Dienstag, 3. März 2020 11:54 > To: core-libs-...@openjdk.java.net > Subject: RFR 8129841 Update comment for > Java_jav

RE: RFR: 8228482: fix xlc16/xlclang comparison of distinct pointer types and string literal conversion warnings

2019-09-17 Thread Langer, Christoph
Hi Matthias, this seems fine to me. The change in NetworkInterface.c is correct, too. Best regards Christoph > -Original Message- > From: core-libs-dev On Behalf > Of Baesken, Matthias > Sent: Donnerstag, 25. Juli 2019 15:45 > To: Doerr, Martin ; 'hotspot- > d...@openjdk.java.net' ; cor

RE: RFR [XS] : 8229706: java/net/MulticastSocket/NoLoopbackPackets.java fails on some AIX machines

2019-08-26 Thread Langer, Christoph
Hi Matthias, looks good to me, too. And +1 for dropping the comment. Best regards Christoph > -Original Message- > From: net-dev On Behalf Of Chris > Hegarty > Sent: Freitag, 16. August 2019 13:44 > To: Baesken, Matthias > Cc: net-dev@openjdk.java.net > Subject: Re: RFR [XS] : 8229706:

[11u] RFR: 8216562: UnknownBodyLength sometimes fails due to "Connection reset by peer"

2019-08-06 Thread Langer, Christoph
Hi, please review the jdk11u backport of another fix for test java/net/httpclient/UnknownBodyLengthTest.java. The patch did apply mostly clean but needed some help in the import directives. Now the change looks effectively the same as the original. Bug: https://bugs.openjdk.java.net/browse/JDK

[11u] RFR: 8210130: java/net/httpclient/UnknownBodyLengthTest.java failed

2019-08-06 Thread Langer, Christoph
Hi, please review the jdk11u backport of a fix for test java/net/httpclient/UnknownBodyLengthTest.java. The test is instable in jdk11u, too, so it should be backported. The patch did apply mostly but the changes to the @run main/othervm directives needed some manual intervention. Bug: https://b

RE: RFR : 8227737: avoid implicit-function-declaration on AIX

2019-07-17 Thread Langer, Christoph
Hi Matthias, looks good, thanks for doing this. How far are we then from enabling "warnings as errors" on AIX? :P Best regards Christoph From: awt-dev On Behalf Of Baesken, Matthias Sent: Dienstag, 16. Juli 2019 17:04 To: Java Core Libs ; nio-...@openjdk.java.net; net-dev@openjdk.jav

RE: [8u] RFR: 8226928: [TESTBUG] test/java/net/NetworkInterface/IPv4Only.java fails intermittently on AIX

2019-06-28 Thread Langer, Christoph
Hi Severin, looks good, ship it 😊 Thanks Christoph > -Original Message- > From: net-dev On Behalf Of Severin > Gehwolf > Sent: Freitag, 28. Juni 2019 10:41 > To: jdk8u-dev > Cc: net-dev > Subject: [8u] RFR: 8226928: [TESTBUG] > test/java/net/NetworkInterface/IPv4Only.java fails interm

RE: [BUG] Inet6Address.isIPv4CompatibleAddress uses wrong prefix

2019-06-24 Thread Langer, Christoph
Hi Rob, sending this over to net-dev, where it should be discussed... /Christoph > -Original Message- > From: core-libs-dev On Behalf > Of Rob Spoor > Sent: Montag, 24. Juni 2019 22:58 > To: core-libs-...@openjdk.java.net > Subject: [BUG] Inet6Address.isIPv4CompatibleAddress uses wrong

RE: [RFR] 8194231: java/net/DatagramSocket/ReuseAddressTest.java failed with java.net.BindException: Address already in use: Cannot bind

2019-05-31 Thread Langer, Christoph
Thanks, Chris. I pushed it then on behalf of Arno. > -Original Message- > From: net-dev On Behalf Of Chris > Hegarty > Sent: Freitag, 31. Mai 2019 16:06 > To: Zeller, Arno > Cc: net-dev@openjdk.java.net > Subject: Re: [RFR] 8194231: > java/net/DatagramSocket/ReuseAddressTest.java failed

RE: [RFR] 8194231: java/net/DatagramSocket/ReuseAddressTest.java failed with java.net.BindException: Address already in use: Cannot bind

2019-05-29 Thread Langer, Christoph
Hi, Thanks, Arno. This looks good to me, too. @Chris: We were running with this patch in our nightly test system for a while now and we don't see regressions. But looking forward to hear from your results. Best regards Christoph > -Original Message- > From: net-dev On Behalf Of Zeller

RE: RFR: 8223553: Fix code constructs that do not compile with the Eclipse Java Compiler

2019-05-23 Thread Langer, Christoph
> Overall, introducing a local variable is more-or-less reasonable even if it's > used only once. One point is that somebody might come along and "clean > up" the > code and inline local variables and reintroduce the problem. Another point is > that, hypothetically, if in the future Eclipse is chan

RE: RFR: 8223553: Fix code constructs that do not compile with the Eclipse Java Compiler

2019-05-23 Thread Langer, Christoph
tted and I should at the same time submit another bug to evaluate these code places at a time when the final resolution for JDK-8016207 was provided? Thank you Christoph > -Original Message- > From: Stuart Marks > Sent: Samstag, 18. Mai 2019 00:56 > To: Langer, Christoph &

RE: RFR: 8223553: Fix code constructs that do not compile with the Eclipse Java Compiler

2019-05-15 Thread Langer, Christoph
this code again from a compiler/spec perspective and make the according modifications? Thanks Christoph > -Original Message- > From: David Holmes > Sent: Mittwoch, 15. Mai 2019 00:05 > To: Langer, Christoph ; Daniel Fuchs > ; core-libs-dev d...@openjdk.java.net&

RE: RFR: 8223553: Fix code constructs that do not compile with the Eclipse Java Compiler

2019-05-14 Thread Langer, Christoph
Christoph > -Original Message- > From: Daniel Fuchs > Sent: Dienstag, 14. Mai 2019 18:04 > To: Langer, Christoph ; core-libs-dev d...@openjdk.java.net>; net-dev > Cc: compiler-...@openjdk.java.net > Subject: Re: RFR: 8223553: Fix code constructs that do not compile wi

RE: RFR: 8223553: Fix code constructs that do not compile with the Eclipse Java Compiler

2019-05-14 Thread Langer, Christoph
Hi Daniel, > > unfortunately, your proposed solution does not work with javac. I get this > in the build: > > Oh darn. I should have double checked. > Can we at least reduce the scope of the @SuppressedWarnings by > introducing a private method that just has the return call? Sure, what about thi

RE: RFR: 8223553: Fix code constructs that do not compile with the Eclipse Java Compiler

2019-05-13 Thread Langer, Christoph
ableFuture 1 error So I think we need to go back to my initial proposal which works for both, IDE and javac: http://cr.openjdk.java.net/~clanger/webrevs/8223553.0/ Thanks Christoph > -Original Message- > From: Langer, Christoph > Sent: Freitag, 10. Mai 2019 11:17 > To: Daniel

RE: RFR: 8223553: Fix code constructs that do not compile with the Eclipse Java Compiler

2019-05-10 Thread Langer, Christoph
> -Original Message- > From: Daniel Fuchs > Sent: Donnerstag, 9. Mai 2019 17:24 > To: Langer, Christoph ; core-libs-dev d...@openjdk.java.net>; net-dev > Cc: compiler-...@openjdk.java.net > Subject: Re: RFR: 8223553: Fix code constructs that do not compile with the &g

RFR: 8223553: Fix code constructs that do not compile with the Eclipse Java Compiler

2019-05-08 Thread Langer, Christoph
Hi, please review a small change that I'd like to see in OpenJDK to get rid of compilation errors in the Eclipse IDE. It seems the root cause for the compilation errors is that javac would sometimes widen capture variables and is hence able to compile the places that I touch here. The EC4J com

RE: RFR(xxxs): 8221406: Windows 32bit build error in NetworkInterface_winXP.c

2019-03-26 Thread Langer, Christoph
Hi Thomas, looks good 😊 Christoph From: net-dev On Behalf Of Thomas Stüfe Sent: Montag, 25. März 2019 14:15 To: net-dev Subject: RFR(xxxs): 8221406: Windows 32bit build error in NetworkInterface_winXP.c Hi all, please review this tiny fix to a windows 32 build warning: Issue: https://bugs

RE: RFR 8170494 : JNI exception pending in PlainDatagramSocketImpl.c

2019-03-20 Thread Langer, Christoph
Hi Ivan, looks good to me. Best regards Christoph > -Original Message- > From: net-dev On Behalf Of Ivan > Gerasimov > Sent: Mittwoch, 20. März 2019 17:18 > To: net-dev > Subject: RFR 8170494 : JNI exception pending in PlainDatagramSocketImpl.c > > Hello! > > The function Java_java_n

RE: RFR 8179549: Typo in network properties documentation

2019-03-14 Thread Langer, Christoph
Looks good, +1 /Christoph From: net-dev On Behalf Of Chris Hegarty Sent: Donnerstag, 14. März 2019 17:47 To: net-dev Subject: RFR 8179549: Typo in network properties documentation Trivial typo fix. diff --git a/src/java.base/share/classes/java/net/doc-files/net-properties.html b/src/java.bas

RE: [JDK 13] RFR 8219802: Problem list java/net/MulticastSocket/SetGetNetworkInterfaceTest.java

2019-02-27 Thread Langer, Christoph
Hi Amy, seems reasonable to me. +1 Best regards Christoph > -Original Message- > From: core-libs-dev On Behalf > Of Amy Lu > Sent: Mittwoch, 27. Februar 2019 02:41 > To: OpenJDK Dev list ; Core-Libs-Dev libs-...@openjdk.java.net> > Subject: [JDK 13] RFR 8219802: Problem list > java/net

RE: RFR 8217657: Move the test for default value of jdk.includeInExceptions into own test

2019-01-24 Thread Langer, Christoph
Hi Sean, thanks for looking at this. I agree. Will remove othervm... Best regards Christoph > -Original Message- > From: Sean Mullan > Sent: Donnerstag, 24. Januar 2019 17:43 > To: Langer, Christoph ; OpenJDK Dev list > ; OpenJDK Network Dev list d...@openjdk.java.net

RE: RFR 8217657: Move the test for default value of jdk.includeInExceptions into own test

2019-01-24 Thread Langer, Christoph
Hi Goetz, thanks for the review. I've added the comment as you suggested: http://cr.openjdk.java.net/~clanger/webrevs/8217657.1/ Will run it through our nightly tests before submitting... /Christoph From: Lindenmaier, Goetz Sent: Donnerstag, 24. Januar 2019 08:48 To: Langer, Chri

RFR 8217657: Move the test for default value of jdk.includeInExceptions into own test

2019-01-23 Thread Langer, Christoph
Hi, please review a small test update. Bug: https://bugs.openjdk.java.net/browse/JDK-8217657 Webrev: http://cr.openjdk.java.net/~clanger/webrevs/8217657.0/ I'd like to move the test for the correct default value of security property "jdk.includeInExceptions" into an own testcase in the jdk.secu

RE: 8217461: (ch) Add Net.available to return the number of bytes in the socket input buffer

2019-01-22 Thread Langer, Christoph
Hi Alan, the change looks good to me. In src/java.base/unix/native/libnio/ch/Net.c and src/java.base/windows/native/libnio/ch/Net.c you could change the code from ... int n = NET_SocketAvailable(fdval(env, fdo), &count); if (n != 0) { ... to one line if (NET_SocketAvailable(fdval(env, fdo), &c

RE: RFR: 8207404: MulticastSocket tests failing on AIX

2019-01-20 Thread Langer, Christoph
Thanks, Steve and Chris for reviewing. Pushed to jdk12. > -Original Message- > From: Chris Hegarty > Sent: Freitag, 18. Januar 2019 15:15 > To: Langer, Christoph ; Steve Groeger > > Cc: net-dev@openjdk.java.net; ppc-aix-port-...@openjdk.java.net > Subj

RE: RFR: 8207404: MulticastSocket tests failing on AIX

2019-01-18 Thread Langer, Christoph
rstag, 17. Januar 2019 12:27 To: Langer, Christoph Cc: net-dev@openjdk.java.net; ppc-aix-port-...@openjdk.java.net Subject: Re: RFR: 8207404: MulticastSocket tests failing on AIX On 17 Jan 2019, at 10:55, Langer, Christoph mailto:christoph.lan...@sap.com>> wrote: Hi, here is a

RE: RFR: 8207404: MulticastSocket tests failing on AIX

2019-01-17 Thread Langer, Christoph
Test.java). Could you check this also with the AIX team whether they consider this a bug or working as expected? Thanks & Best regards Christoph From: Steve Groeger Sent: Donnerstag, 17. Januar 2019 14:32 To: Langer, Christoph Cc: Chris Hegarty ; net-dev@openjdk.java.net; net-dev ; ppc-aix-

RE: RFR: 8207404: MulticastSocket tests failing on AIX

2019-01-17 Thread Langer, Christoph
issues on other platforms. I'll send an updated webrev tomorrow. Best regards Christoph From: Chris Hegarty Sent: Donnerstag, 17. Januar 2019 12:27 To: Langer, Christoph Cc: net-dev@openjdk.java.net; ppc-aix-port-...@openjdk.java.net Subject: Re: RFR: 8207404: MulticastSocket tests failing on AI

RE: RFR(XS): 8217311: Improve Exception thrown when MulticastSocket.setInterface fails on AIX(Unix)

2019-01-17 Thread Langer, Christoph
England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU From: "Langer, Christoph" <mailto:christoph.lan...@sap.com> To:"net-dev@openjdk.java.net"<mailto:net-dev@openjdk.java.net> <mailto:net

RFR: 8207404: MulticastSocket tests failing on AIX

2019-01-17 Thread Langer, Christoph
Hi, here is a fix for the MulticastSocket tests failing on AIX (in certain sceanrios): Webrev: http://cr.openjdk.java.net/~clanger/webrevs/8207404.0/ Bug: https://bugs.openjdk.java.net/browse/JDK-8207404 First of all, I "modernized" the testcases test/jdk/java/net/MulticastSocket/SetGetNetwork

RFR(XS): 8217311: Improve Exception thrown when MulticastSocket.setInterface fails on AIX(Unix)

2019-01-17 Thread Langer, Christoph
Hi, please help to review a tiny fix. While working on the issue with the AIX multicast tests (https://bugs.openjdk.java.net/browse/JDK-8207404), I found a place where a SocketException thrown in a specific error case could be improved. There already exists code to throw a SocketException with

RE: RFR 8007606 : Handle realloc() failure in unix/native/libnet/net_util_md.c correctly

2019-01-15 Thread Langer, Christoph
Hi Ivan, yes, sure, push it 😊 Best regards Christoph > -Original Message- > From: Ivan Gerasimov > Sent: Dienstag, 15. Januar 2019 20:53 > To: Baesken, Matthias ; net- > d...@openjdk.java.net; Langer, Christoph > Subject: Re: RFR 8007606 : Handle realloc() failur

RE: 8207404: MulticastSocket tests failing on Aix

2019-01-15 Thread Langer, Christoph
Hi Steve, I have looked into this topic. I started some work in that area a few years ago and never finished it. I think the root cause of the issue got already pointed out in this discussion. The JVM (correctly) detects that the system is capable of IPv6 and hence opens new sockets with addre

RE: RFR 8007606 : Handle realloc() failure in unix/native/libnet/net_util_md.c correctly

2019-01-11 Thread Langer, Christoph
Hi, that's right, good catch. Either set localifs to 0 or maybe even keep the old pointer with the old value of localifs. I guess the case is a bit theoretical but it should be done right. In line 695 fclose (f); the formatting can be fixed (also remove space between fclose and the bracket

RE: RFR 8007606 : Handle realloc() failure in unix/native/libnet/net_util_md.c correctly

2019-01-10 Thread Langer, Christoph
Hi Ivan, looks good. Best regards Christoph > -Original Message- > From: net-dev On Behalf Of Ivan > Gerasimov > Sent: Freitag, 11. Januar 2019 05:29 > To: net-dev@openjdk.java.net > Subject: RFR 8007606 : Handle realloc() failure in > unix/native/libnet/net_util_md.c correctly > > Hel

RE: [CAUTION] RE: RFR 8216355: missing NULL checks in libnet in interface iteration and potential resource leak in getMacAddress

2019-01-09 Thread Langer, Christoph
Hi Matthias, looks good to me. In src/java.base/unix/native/libnet/NetworkInterface.c, lines 1019 and 1034, I'd prefer if the style was: if (addr == NULL) { return 0; } Thanks Christoph From: net-dev On Behalf Of Baesken, Matthias Sent: Mittwoch, 9. Januar 2019 10:02 To: net-dev Cc: Rob

RE: [CAUTION] RFR : 8211146 : fix problematic elif-tests after recent gcc warning changes Werror=undef

2018-09-26 Thread Langer, Christoph
Hi Matthias, looks good (and trivial). Ccing serviceability-dev because of change in libjdwp. Best regards Christoph From: nio-dev On Behalf Of Baesken, Matthias Sent: Mittwoch, 26. September 2018 11:25 To: 'build-...@openjdk.java.net' ; net-dev ; nio-...@openjdk.java.net Cc: Lindenmaier, Goet

RE: RFR of JDK-8210802,temp files left by tests in jdk/java/net/httpclient

2018-09-17 Thread Langer, Christoph
018 11:02 > To: Langer, Christoph > Cc: OpenJDK Network Dev list > Subject: Re: RFR of JDK-8210802,temp files left by tests in > jdk/java/net/httpclient > > Hi Christoph, > > Thank you for review. > > Normally I prefer to use "finally" too. > > Bu

RE: RFR of JDK-8210802,temp files left by tests in jdk/java/net/httpclient

2018-09-17 Thread Langer, Christoph
Hi Hamlin, wouldn't it be better/cleaner to move the deletion of files into finally blocks? But I guess one can do it with deleteOnExit() as well... Best regards Christoph > -Original Message- > From: net-dev On Behalf Of Hamlin Li > Sent: Montag, 17. September 2018 07:55 > To: OpenJDK

RE: RFR [XS]: 8210147: adjust some WSAGetLastError usages in windows network coding - was : RE: WSAGetLastError usage in jdk/src/java.base/windows/native/libnet/SocketInputStream.c

2018-08-30 Thread Langer, Christoph
Hi Matthias, > Can I have a second review please ? +1 Best regards Christoph

RE: RFR : 8205959 : Do not restart close if errno is EINTR

2018-07-02 Thread Langer, Christoph
Hi Matthias, forwarding to serviceability-dev, because debugging is usually discussed there. Yes, I would think this coding should be fixed, too. Can you open a bug and prepare a change? Thanks Christoph > -Original Message- > From: net-dev [mailto:net-dev-boun...@openjdk.java.net] On

RE: RFR:8194298 Add support for per Socket configuration of TCP keepalive

2018-05-15 Thread Langer, Christoph
Hi, As I had written previously, I’m still unclear whether the naming of the MacOS implementation files is the best choice. Currently it is: src/jdk.net/macosx/classes/jdk/net/UnixSocketOptions.java src/jdk.net/macosx/native/libextnet/UnixSocketOptions.c Maybe it should rather be: src/jdk.net/

RE: RFR(XS): 8202181: Correctly specify size of hostname buffer in Unix Inet*AddressImpl_getLocalHostName implementations

2018-04-30 Thread Langer, Christoph
:chris.hega...@oracle.com] > Sent: Montag, 30. April 2018 11:45 > To: Langer, Christoph ; Thomas Stüfe > > Cc: net-dev@openjdk.java.net > Subject: Re: RFR(XS): 8202181: Correctly specify size of hostname buffer in > Unix Inet*AddressImpl_getLocalHostName implementations > > >

RE: RFR(XS): 8202181: Correctly specify size of hostname buffer in Unix Inet*AddressImpl_getLocalHostName implementations

2018-04-30 Thread Langer, Christoph
27. April 2018 18:15 > To: Langer, Christoph > Cc: vyom tewari ; net-dev@openjdk.java.net; > Brian Burkhalter > Subject: Re: RFR(XS): 8202181: Correctly specify size of hostname buffer in > Unix Inet*AddressImpl_getLocalHostName implementations > > Hi Christoph, > >

RE: RFR(XS): 8202181: Correctly specify size of hostname buffer in Unix Inet*AddressImpl_getLocalHostName implementations

2018-04-27 Thread Langer, Christoph
tions/getnameinfo.html > -Original Message- > From: vyom tewari [mailto:vyom.tew...@oracle.com] > Sent: Freitag, 27. April 2018 08:38 > To: Thomas Stüfe > Cc: Langer, Christoph ; net- > d...@openjdk.java.net > Subject: Re: RFR(XS): 8202181: Correctly specify size of host

RE: RFR(XS): 8202181: Correctly specify size of hostname buffer in Unix Inet*AddressImpl_getLocalHostName implementations

2018-04-26 Thread Langer, Christoph
Ping, can some reviewer please have a look at this small fix? Thanks Christoph From: Langer, Christoph Sent: Dienstag, 24. April 2018 11:39 To: net-dev@openjdk.java.net Subject: RFR(XS): 8202181: Correctly specify size of hostname buffer in Unix Inet*AddressImpl_getLocalHostName implementations

RE: RFR:8194298 Add support for per Socket configuration of TCP keepalive

2018-04-26 Thread Langer, Christoph
Ok, let's get some more opinions on that... 😊 > -Original Message- > From: vyom tewari [mailto:vyom.tew...@oracle.com] > Sent: Donnerstag, 26. April 2018 12:31 > To: Langer, Christoph ; Chris Hegarty > ; OpenJDK Network Dev list d...@openjdk.java.net> > Su

RE: RFR:8194298 Add support for per Socket configuration of TCP keepalive

2018-04-26 Thread Langer, Christoph
Hi Vyom, what about my suggestions for renaming? src/jdk.net/macosx/classes/jdk/net/UnixSocketOptions.java -> src/jdk.net/macosx/classes/jdk/net/MacOSXSocketOptions.java src/jdk.net/macosx/native/libextnet/UnixSocketOptions.c -> src/jdk.net/macosx/native/libextnet/MacOSXSocketOptions.c This wo

RE: RFR(XS): 8202181: Correctly specify size of hostname buffer in Unix Inet*AddressImpl_getLocalHostName implementations

2018-04-24 Thread Langer, Christoph
Hi Vyom, > I think, it is intentional to handle case where return "hostname" is to large > to > fit in  array.  if you see the man page(http://man7.org/linux/man- > pages/man2/gethostname.2.html) it says that it is unspecified whether > returned buffer includes a terminating null byte. > > curre

RFR(XS): 8202181: Correctly specify size of hostname buffer in Unix Inet*AddressImpl_getLocalHostName implementations

2018-04-24 Thread Langer, Christoph
Hi, please help reviewing a small change that I stumbled over when looking into the getLocalHostName implementation. I found that the length of the hostname buffer is not correctly passed to sub functions. The buffer size is specified as "NI_MAXHOST + 1", so this size should be handed down to g

RE: RFR 8202154 : Remove unused code in java.base/windows/native/libnet

2018-04-24 Thread Langer, Christoph
Hi Ivan, looks good. I agree that the fields that Vyom mentioned should be final. Best regards Christoph From: net-dev [mailto:net-dev-boun...@openjdk.java.net] On Behalf Of vyom tewari Sent: Dienstag, 24. April 2018 08:29 To: net-dev@openjdk.java.net Subject: Re: RFR 8202154 : Remove unused cod

[8u] RFR(XS): 8201369: Inet4AddressImpl_getLocalHostName reverse lookup on Solaris only

2018-04-23 Thread Langer, Christoph
Hi, I created a JDK 8 backport proposal for JDK-8201369: http://cr.openjdk.java.net/~clanger/webrevs/8201369-jdk8.0/ This is the Bug: https://bugs.openjdk.java.net/browse/JDK-8201369 The issue was recently discussed and reviewed here: http://mail.openjdk.java.net/pipermail/net-dev/2018-April/011

RE: RFR 8202091 : Rename DualStackPlainSocketImpl to PlainSocketImpl [win]

2018-04-22 Thread Langer, Christoph
Hi Ivan, this looks good to me. Next nice step in cleaning up the socket implementation. Best regards Christoph > -Original Message- > From: net-dev [mailto:net-dev-boun...@openjdk.java.net] On Behalf Of > Ivan Gerasimov > Sent: Freitag, 20. April 2018 22:40 > To: net-dev@openjdk.java.ne

RE: RFR(XS): 8201369: Inet4AddressImpl_getLocalHostName reverse lookup on Solaris only

2018-04-18 Thread Langer, Christoph
Thank you. Pushed: http://hg.openjdk.java.net/jdk/jdk/rev/a838e3707f3a > -Original Message- > From: Chris Hegarty [mailto:chris.hega...@oracle.com] > Sent: Mittwoch, 18. April 2018 16:20 > To: Langer, Christoph > Cc: Srividya Shamaiah ; OpenJDK Network Dev list > >

RE: RFR(XS): 8201369: Inet4AddressImpl_getLocalHostName reverse lookup on Solaris only

2018-04-18 Thread Langer, Christoph
Hi Chris, our testing didn’t show regressions. Are we good to push? Best regards Christoph From: Chris Hegarty [mailto:chris.hega...@oracle.com] Sent: Montag, 16. April 2018 16:39 To: Langer, Christoph Cc: Srividya Shamaiah ; OpenJDK Network Dev list Subject: Re: RFR(XS): 8201369

RE: RFR:8194298 Add support for per Socket configuration of TCP keepalive

2018-04-16 Thread Langer, Christoph
Hi Vyom, I had a quick glance through your changes. Apart from the suggestions you've already got (use snprintf instead of string concatenation, method ordering...), I think "src/jdk.net/macosx/classes/jdk/net/UnixSocketOptions.java" and " src/jdk.net/macosx/native/libextnet/UnixSocketOptions.

RE: RFR(XS): 8201369: Inet4AddressImpl_getLocalHostName reverse lookup on Solaris only

2018-04-16 Thread Langer, Christoph
so do some testing. I'll also take care of the backport after the push to jdk11. Best regards Christoph From: Srividya Shamaiah [mailto:ssham...@in.ibm.com] Sent: Montag, 16. April 2018 10:44 To: Langer, Christoph Cc: Chris Hegarty ; OpenJDK Network Dev list Subject: R

RE: JDK-8200719: Cannot connect to IPv6 host when exists any active network interface without IPv6 address

2018-04-16 Thread Langer, Christoph
Hi, thanks, I've pushed it then: http://hg.openjdk.java.net/jdk/jdk/rev/bc1c7e41e285 Best regards Christoph > -Original Message- > From: Chris Hegarty [mailto:chris.hega...@oracle.com] > Sent: Freitag, 13. April 2018 16:07 > To: Langer, Christoph ; Joel Peláez

RE: JDK-8200719: Cannot connect to IPv6 host when exists any active network interface without IPv6 address

2018-04-13 Thread Langer, Christoph
Hi Chris, Joel, testing went fine and did not show regressions. Same for the Oracle tests? Best regards Christoph > -Original Message- > From: Chris Hegarty [mailto:chris.hega...@oracle.com] > Sent: Mittwoch, 11. April 2018 18:11 > To: Langer, Christoph ; Joel Peláez Jorge

RE: JDK-8200719: Cannot connect to IPv6 host when exists any active network interface without IPv6 address

2018-04-11 Thread Langer, Christoph
: Joel Peláez Jorge [mailto:joelpel...@gmail.com] > Sent: Mittwoch, 11. April 2018 12:54 > To: Langer, Christoph ; net- > d...@openjdk.java.net > Subject: Re: JDK-8200719: Cannot connect to IPv6 host when exists any active > network interface without IPv6 address > > Hi Chris

RE: JDK-8200719: Cannot connect to IPv6 host when exists any active network interface without IPv6 address

2018-04-11 Thread Langer, Christoph
Hi Joel, your fix sounds reasonable. In fact, I'm not even sure if the sin6_scope_id should be set for multicast. Maybe it should be done only for link local addresses. Additionally, I guess the selection of the default interface (for IPv6) should be improved because I still can imagine a scen

RE: 8169865 : Changes not ported to IPv4

2018-04-11 Thread Langer, Christoph
Hi Srividya, I would also welcome this fix. Will you do the fix based on the jdk (11) depot? I think Java_java_net_Inet4AddressImpl_getLocalHostName should then be exactly the same as Java_java_net_Inet6AddressImpl_getLocalHostName. I can assist you with sponsoring/backporting to JDK8, if you

RE: RFR [11] 8198358 : Align organization of DualStackPlainSocketImpl with TwoStacksPlainSocketImp [win]

2018-03-27 Thread Langer, Christoph
Hi Ivan, I went through your changes and I really like this work. Nothing to complain about - especially if there are no regressions with the additional test coverage. Best regards Christoph > -Original Message- > From: net-dev [mailto:net-dev-boun...@openjdk.java.net] On Behalf Of >

RE: 8199329: Remove code that attempts to read bytes after connection reset reported

2018-03-14 Thread Langer, Christoph
Hi Alan, looks good to me, +1. Best regards Christoph > -Original Message- > From: net-dev [mailto:net-dev-boun...@openjdk.java.net] On Behalf Of > Alan Bateman > Sent: Mittwoch, 14. März 2018 15:31 > To: OpenJDK Network Dev list > Subject: 8199329: Remove code that attempts to read byt

RE: httpserver does not close connections when RejectedExecutionException occurs

2018-03-07 Thread Langer, Christoph
Hi Yuji, looks good. Best regards Christoph > -Original Message- > From: KUBOTA Yuji [mailto:kubota.y...@gmail.com] > Sent: Donnerstag, 8. März 2018 03:57 > To: Daniel Fuchs > Cc: Langer, Christoph ; Yasumasa Suenaga > ; OpenJDK Network Dev list d...@openjdk.java.

RE: RFR 8198302: VS2017 (C4477) java.base/windows/native/libnet/NetworkInterface_winXP.c incorrect printf format strings

2018-03-06 Thread Langer, Christoph
Looks good, Brian. From: net-dev [mailto:net-dev-boun...@openjdk.java.net] On Behalf Of Brian Burkhalter Sent: Dienstag, 6. März 2018 16:27 To: OpenJDK Network Dev list Subject: RFR 8198302: VS2017 (C4477) java.base/windows/native/libnet/NetworkInterface_winXP.c incorrect printf format strings

RE: RFR [11] 8198358 : Align organization of DualStackPlainSocketImpl with TwoStacksPlainSocketImp [win]

2018-03-06 Thread Langer, Christoph
Hi Ivan, I went through the changes a bit and I would think it is really a good cleanup and will make the future merge of the implementations easier. One thing I saw was that TwoStacksPlainSocketImpl.c has an #include in line 25. I think that can be removed!? I had problems importing the patc

RE: httpserver does not close connections when RejectedExecutionException occurs

2018-03-06 Thread Langer, Christoph
Hi Yuji, I had a look and to me it seems safe to do like webrev.03 suggests. That is, remove the throws clause. As Daniel pointed out, it seems that all callers of the "handle" method would do merely the same. The only thing I'm not sure about is the CancelledKeyException caught in line 413. In

RE: JDK-8144300 : Java does not honor http.nonProxyHosts value having wildcard * both at end and start

2018-03-06 Thread Langer, Christoph
Hi Pallavi, this change looks good to me. The only thing left to mention is that you will need to update the copyright years - I guess you would have done it on submit anyway. Best regards Christoph From: net-dev [mailto:net-dev-boun...@openjdk.java.net] On Behalf Of Pallavi Sonal Sent: Freit

RE: JDK-8080990: libdt_socket/socket_md.c(202) : warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW()

2018-02-05 Thread Langer, Christoph
Cc: Langer, Christoph ; OpenJDK Serviceability ; OpenJDK Build ; OpenJDK Networking Subject: Re: JDK-8080990: libdt_socket/socket_md.c(202) : warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() One more to fix to cover the remaining test failures I was seeing. Previou

RE: JDK-8080990: libdt_socket/socket_md.c(202) : warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW()

2018-02-02 Thread Langer, Christoph
Hi Gary, > Here's a revised webrev > >http://cr.openjdk.java.net/~gadams/8080990/webrev.01/index.html > > Still testing ... > > Using shutdown() fixed problems reported by the > java/nio/channelSocketChannel tests. The fix looks good. I would think we should rename dbgsysInetAddr to dbgsysP

RE: JDK-8080990: libdt_socket/socket_md.c(202) : warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW()

2018-02-01 Thread Langer, Christoph
But WSASendDisconnect isn't deprecated, right? So you wanted to get rid of it? I still don't see the reason... -Original Message- From: gary.ad...@oracle.com [mailto:gary.ad...@oracle.com] Sent: Donnerstag, 1. Februar 2018 12:17 To: Langer, Christoph ; OpenJDK Serviceability

RE: JDK-8080990: libdt_socket/socket_md.c(202) : warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW()

2018-02-01 Thread Langer, Christoph
Hi Gary, I was having a look at your changes. I'm wondering what the reason is behind uncommenting WSASendDisconnect in Java_sun_nio_ch_SocketDispatcher_preClose0 of file SocketDispatcher.c? And in dbgsysSocketClose? In socketTransport.c, line: 331 setLastError(0, "gethostb

RE: 8193034: Optimize URL.toExternalForm

2017-12-04 Thread Langer, Christoph
Hi Martin, I think the new code is more compact and readable which makes it nice. I reviewed it to check that the result is still the same as before. However, I can’t assess if it is acceptable from a performance point of view and would defer this assessment to some other reviewer. But apart fr

RE: RFR(S): 8155590: Dubious collection management in sun.net.www.http.KeepAliveCache

2017-10-19 Thread Langer, Christoph
Hi Roger, ah, I see. I pushed with removing the comment then: http://hg.openjdk.java.net/jdk10/master/rev/74e1913a98c0 Thanks Christoph From: Roger Riggs [mailto:roger.ri...@oracle.com] Sent: Mittwoch, 18. Oktober 2017 20:37 To: Langer, Christoph ; net-dev@openjdk.java.net Subject: Re: RFR(S

RE: RFR 8145635 : Add TCP_QUICKACK socket option

2017-10-18 Thread Langer, Christoph
CP_QUICKACK socket option > > Hi All, > > please find the latest > webrev(http://cr.openjdk.java.net/~vtewari/8145635/webrev0.7/index.htm > l). > > Thanks, > > Vyom > > > On Wednesday 18 October 2017 08:21 PM, Langer, Christoph wrote: > > Hi Vyom, >

RE: RFR(S): 8155590: Dubious collection management in sun.net.www.http.KeepAliveCache

2017-10-18 Thread Langer, Christoph
o:roger.ri...@oracle.com] Sent: Mittwoch, 18. Oktober 2017 17:28 To: Langer, Christoph ; net-dev@openjdk.java.net Subject: Re: RFR(S): 8155590: Dubious collection management in sun.net.www.http.KeepAliveCache Hi Christoph, Looks ok. The comment in remove() about CCE can be removed. ArrayDeque is not threa

RE: RFR 8145635 : Add TCP_QUICKACK socket option

2017-10-18 Thread Langer, Christoph
Hi Vyom, I just looked at your latest webrev which in general looks fine to me. Some minor remarks: make/lib/Lib-jdk.net.gmk: - copyright year needs to be updated src/java.base/unix/classes/java/net/PlainDatagramSocketImpl.java: - private void addExtSocketOptions(...) looks a bit awful concern

RE: RFR(S): 8155590: Dubious collection management in sun.net.www.http.KeepAliveCache

2017-10-18 Thread Langer, Christoph
s are synchronized and in the same thread. I think a CCE could occur during the iteration to find the entry when Vector.Itr.next() checks. (It you want to more radical fix, replace the Vector with something more current. It would be one less Vector). Roger On 10/16/17 2:33 AM, Langer, Christoph

RE: RFR(S): 8155590: Dubious collection management in sun.net.www.http.KeepAliveCache

2017-10-16 Thread Langer, Christoph
move is get called from synchronize "remove (HttpClient h, Object obj)" and the underline data structure is which is java.util.Vector(ClientVector extends java.util.Stack) is also thread safe. What do you think ? Thanks, Vyom On Monday 16 October 2017 12:52 PM, Langer, Christoph wro

RFR(S): 8155590: Dubious collection management in sun.net.www.http.KeepAliveCache

2017-10-16 Thread Langer, Christoph
Hi, Here is a proposal for a fix for bug 8155590. I already made this fix a while ago in our JDK clone and I'd like to contribute this. Bug: https://bugs.openjdk.java.net/browse/JDK-8155590 Webrev: http://cr.openjdk.java.net/~clanger/webrevs/8155590.0/ Please review. Thanks Christoph

RE: RFR 8085875/10, java/net/DatagramSocket/PortUnreachable.java fails intermittently: Address already in use

2017-09-07 Thread Langer, Christoph
Hi Mark, I overlooked that, you are completely right, recreateServerSocket is fine then. Best regards Christoph > -Original Message- > From: Mark Sheppard [mailto:mark.shepp...@oracle.com] > Sent: Donnerstag, 7. September 2017 13:07 > To: Langer, Christoph ; Felix Yang >

RE: RFR 8085875/10, java/net/DatagramSocket/PortUnreachable.java fails intermittently: Address already in use

2017-09-07 Thread Langer, Christoph
Hi Felix, this looks good in general. I would, however, suggest to rename the method 'recreateServerSocket' into ' createServerSocket' as the former name suggests that something which existed once was recreated. But in this case the socket is simply created with a few retries when exceptions o

RE: RFR : 8182672: Java 8u121 on Linux intermittently returns null for MAC address

2017-06-23 Thread Langer, Christoph
Hi, looks like a great piece of modern concurrent Java coding :) Well done! +1 Best regards Christoph > -Original Message- > From: Chris Hegarty [mailto:chris.hega...@oracle.com] > Sent: Freitag, 23. Juni 2017 15:28 > To: Seán Coffey ; Langer, Christoph > > Cc: net-

RE: RFR : 8182672: Java 8u121 on Linux intermittently returns null for MAC address

2017-06-23 Thread Langer, Christoph
"-Thread-". Best regards Christoph > -Original Message- > From: Seán Coffey [mailto:sean.cof...@oracle.com] > Sent: Freitag, 23. Juni 2017 11:57 > To: Langer, Christoph > Cc: Vyom Tewari ; net-dev d...@openjdk.java.net>; Mark Sheppard > Subject: Re: RFR :

RE: RFR : 8182672: Java 8u121 on Linux intermittently returns null for MAC address

2017-06-22 Thread Langer, Christoph
Hi Sean, I played with it a bit more and now really understand Vyoms observation. So, what he sees is not the original concurrency issue but he encounters a SocketException on some interface, where this is supposed to occur upon calling getHardwareAddress(). So, to enable the testcase to run r

RE: RFR : 8182672: Java 8u121 on Linux intermittently returns null for MAC address

2017-06-22 Thread Langer, Christoph
> From: Seán Coffey [mailto:sean.cof...@oracle.com] > Sent: Donnerstag, 22. Juni 2017 18:29 > To: OpenJDK Network Dev list ; Langer, > Christoph > Subject: RFR : 8182672: Java 8u121 on Linux intermittently returns null for > MAC address > > JDK 10 fix required to correct a ra

RE: RFR (xxs): 8180424: Another build issue on AIX after 8034174

2017-05-17 Thread Langer, Christoph
Hi Thomas, this looks good and should definitely be downported to JDK9 as soon as possible. Best regards Christoph From: ppc-aix-port-dev [mailto:ppc-aix-port-dev-boun...@openjdk.java.net] On Behalf Of Thomas Stüfe Sent: Dienstag, 16. Mai 2017 14:51 To: ppc-aix-port-...@openjdk.java.net; net-de

RE: RFR 8179602: Fix for JDK-8165437 is broken on 32-bit Linux

2017-05-04 Thread Langer, Christoph
Hi Vyom, the fix looks good and seems straightforward to resolve the reported issue. Small item: I spotted an extra space in net_util_md.h, line 75, between "jlong" and "nanoTimeStamp" which could be removed. Reviewed. Best regards Christoph > -Original Message- > From: net-dev [mailt

RE: JDK10 RFR: 8165437 Evaluate the use of gettimeofday in Networking code

2017-04-27 Thread Langer, Christoph
Hi Vyom, I’ve just got a small formatting remark about the order of includes: Generally I tried to follow the rule 1. Common os headers, 2. Platform os headers, 3. Jvm/jdk headers, 4. JNI headers in my latest refactorings. So, to keep this up, can you move #include “jvm.h” in the line before #

RE: [PATCH] 8035653: jdk8u152-b01 windows crash on DatagramSocket.getLocalAddress

2017-04-24 Thread Langer, Christoph
ril 2017 15:22 > To: Langer, Christoph > Cc: net-dev@openjdk.java.net > Subject: Re: [PATCH] 8035653: jdk8u152-b01 windows crash on > DatagramSocket.getLocalAddress > > Hi Christoph, > > On 04/19/2017 10:53 AM, Langer, Christoph wrote: > > Hi Alex, > > > >

RE: [PATCH] 8035653: jdk8u152-b01 windows crash on DatagramSocket.getLocalAddress

2017-04-19 Thread Langer, Christoph
Hi Alex, I've just quickly checked this and it seems worthwile to me to downport 8035653 to JDK8. As the patch will probably not apply cleanly to JDK8 after unshuffling [1] , you will need to create a new public review and post it on this mailing list. Some JDK8 reviewer needs to review it and

RE: Let's improve IPv6 support

2017-03-18 Thread Langer, Christoph
Hi Martin and colleagues, Sounds good. I’m supporting that and I’m willing to assist with testing/reviewing. But if it comes to larger changes and JEPs/CCCs (or the new CSR), it will need an owner at Oracle… like Chris. Best regards Christoph From: net-dev [mailto:net-dev-boun...@openjdk.java

RE: RFR(M): 8167457: Fixes for InetAddressImpl native coding on Windows

2017-01-26 Thread Langer, Christoph
Hi Michael, Thanks for reviewing. So I'll push them in jdk10. Best regards Christoph From: Michael McMahon [mailto:michael.x.mcma...@oracle.com] Sent: Donnerstag, 26. Januar 2017 15:51 To: Langer, Christoph Cc: Chris Hegarty ; net-dev@openjdk.java.net Subject: Re: RFR(M): 8167457: Fixe

RE: RFR(M): 8167457: Fixes for InetAddressImpl native coding on Windows

2017-01-26 Thread Langer, Christoph
that I can get it out of my head. :) Thanks & Best regards Christoph From: Langer, Christoph Sent: Mittwoch, 21. Dezember 2016 15:57 To: net-dev@openjdk.java.net Subject: RFR(M): 8167457: Fixes for InetAddressImpl native coding on Windows Hi again, after pushing the change for 81710

RE: RFR: 8170544: Fix code scan findings in libnet

2017-01-13 Thread Langer, Christoph
Hi, I finally pushed the change: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/f3115622562a Best regards Christoph > -Original Message- > From: Langer, Christoph > Sent: Mittwoch, 11. Januar 2017 16:50 > To: 'Chris Hegarty' > Cc: Lindenmaier, Goetz ; net

  1   2   3   >