Re: RFR: JDK-8214560 - Use {@systemProperty} for definitions of system properties (httpserver)

2019-10-09 Thread Seán Coffey
Looks good Kiran. I'll sponsor this for you. regards, Sean. On 08/10/2019 17:19, Kiran Ravikumar wrote: Hi Guys, Could you please review this minor fix: Bug :https://bugs.openjdk.java.net/browse/JDK-8214560 Webrev :https://cr.openjdk.java.net/~coffeys/webrev.8214560/webrev/

Re: RFR [13] 8225037: java.net.JarURLConnection::getJarEntry() throws NullPointerException

2019-06-05 Thread Seán Coffey
Looks fine to me. Regards, Sean. On 31/05/19 11:58, Chris Hegarty wrote: The implementation of java.net.JarURLConnection has a private String, `entryName`, that is used to hold the optional jar file entry name. If the JAR file URL corresponding to the JarURLConnection points to a JAR file and

Re: RFR: 8217364: Custom URLStreamHandler for jrt or file protocol can override default handler

2019-05-02 Thread Seán Coffey
otocol); } Thanks! /Claes On 2019-05-02 12:33, Seán Coffey wrote: with webrev: https://cr.openjdk.java.net/~coffeys/webrev.8217364.02/webrev/ regards, Sean. On 02/05/2019 11:00, Seán Coffey wrote: Been thinking a bit more about this one. Given that only initialization code will tr

Re: RFR: 8217364: Custom URLStreamHandler for jrt or file protocol can override default handler

2019-05-02 Thread Seán Coffey
with webrev: https://cr.openjdk.java.net/~coffeys/webrev.8217364.02/webrev/ regards, Sean. On 02/05/2019 11:00, Seán Coffey wrote: Been thinking a bit more about this one. Given that only initialization code will traverse through the "if (!isOverrideable(protocol))" check, I think

Re: RFR: 8217364: Custom URLStreamHandler for jrt or file protocol can override default handler

2019-05-02 Thread Seán Coffey
er we make the first handers.get call in getURLStreamHandler(String protocol) http://gbr10227.uk.oracle.com/html/ws/jdk-jdk/open/webrev.8217364.02/webrev/ regards, Sean. On 30/04/2019 18:19, Seán Coffey wrote: Looking to correct an issue that arose during the JDK-8213942 fix. https://bugs.openjd

RFR: 8217364: Custom URLStreamHandler for jrt or file protocol can override default handler

2019-04-30 Thread Seán Coffey
Looking to correct an issue that arose during the JDK-8213942 fix. https://bugs.openjdk.java.net/browse/JDK-8217364 https://cr.openjdk.java.net/~coffeys/webrev.8217364/webrev/ regards, Sean.

Re: RFR 8179549: Typo in network properties documentation

2019-03-15 Thread Seán Coffey
Looks fine to me also! Regards, Sean. On 14/03/19 19:41, Langer, Christoph wrote: 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

Re: RFR: 8214295: Populate handlers while holding streamHandlerLock

2018-11-26 Thread Seán Coffey
On 26/11/18 12:59, Pavel Rappo wrote: On 26 Nov 2018, at 12:12, Seán Coffey wrote: JDK-8213942 synchronization fix can be improved Looks like a soft language for what actually is a race condition. I wonder at what point should we just rewrite the thing as Alan mentioned using "

RFR: 8214295: Populate handlers while holding streamHandlerLock

2018-11-26 Thread Seán Coffey
JDK-8213942 synchronization fix can be improved. Details in bug report. https://bugs.openjdk.java.net/browse/JDK-8214295 http://cr.openjdk.java.net/~coffeys/webrev.8214295/webrev/ -- Regards, Sean.

Re: RFR: 8213942:URLStreamHandler initialization race

2018-11-21 Thread Seán Coffey
Thanks to all for the feedback. It makes sense to reduce the scope of the lock where possible. I've updated the webrev : http://cr.openjdk.java.net/~coffeys/webrev.8213942.v2/webrev/ Regards, Sean. On 20/11/18 20:59, Chris Hegarty wrote: Sean, On 20 Nov 2018, at 17:55, Seán Coffey wrote

Re: RFR: 8213942:URLStreamHandler initialization race

2018-11-20 Thread Seán Coffey
On 20/11/2018 19:07, Alan Bateman wrote: On 20/11/2018 17:55, Seán Coffey wrote: A race condition recently reported by the WLS team. Access to the handlers Hashtable and the factory should be made while holding the streamHandlerLock lock. WLS team also made efforts to create a reproducer

RFR: 8213942:URLStreamHandler initialization race

2018-11-20 Thread Seán Coffey
A race condition recently reported by the WLS team. Access to the handlers Hashtable and the factory should be made while holding the streamHandlerLock lock. WLS team also made efforts to create a reproducer. I've modified to jtreg format and reduced it down further for unit testing.

Re: Adding SocketChannel toString to connection exception messages

2017-12-22 Thread Seán Coffey
As someone who works with alot of log files, I'd like to chime in and support Steven's end goal. Looking at a "Connection refused" error in the middle of a log file that possibly extends to millions of lines is near useless. In the era of cloud compute, diagnosing network issues is sure to

RFR(XS) : 8182672: Java 8u121 on Linux intermittently returns null for MAC address

2017-06-26 Thread Seán Coffey
Looking to backport this to jdk8u-dev. There was a minor tweak in the testcase around how the interfaces are streamed. As a result, I'm carrying out a code review for the backport. Dropped use of "NetworkInterface.networkInterfaces();" Presume it's ok :

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

2017-06-23 Thread Seán Coffey
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 <sean.cof...@oracle.com>; Langer, Christoph <christoph.lan...@sap.com> Cc: net-

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

2017-06-23 Thread Seán Coffey
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 <sean.cof...@oracle.com>; Langer, Christoph <christoph.lan...@sap.com> Cc: net-dev <net-dev@o

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

2017-06-23 Thread Seán Coffey
, e.g. when it comes to an exception, the thread name could be mentioned, too. Best regards Christoph -Original Message- From: net-dev [mailto:net-dev-boun...@openjdk.java.net] On Behalf Of Seán Coffey Sent: Donnerstag, 22. Juni 2017 20:17 To: Vyom Tewari <vyom.tew...@oracle.com>; n

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

2017-06-22 Thread Seán Coffey
e cscotun0- Thread3 Testing: cscotun0 Thanks, Vyom On Thursday 22 June 2017 09:59 PM, Seán Coffey wrote: JDK 10 fix required to correct a race issue in NetworkInterface. I don't believe the ifreq struct needs to be static in any case. New auto unit testcase also. I propose to skip this fix for JDK

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

2017-06-22 Thread Seán Coffey
JDK 10 fix required to correct a race issue in NetworkInterface. I don't believe the ifreq struct needs to be static in any case. New auto unit testcase also. I propose to skip this fix for JDK 9 and fix in an update release for that family. I also plan to port this to jdk8u-dev.

RFR (xs) : 8177144 :sun/net/www/http/HttpClient/B8025710.java should run in ovm mode

2017-03-20 Thread Seán Coffey
Looking for a simple review. Test should be run in ovm mode : https://bugs.openjdk.java.net/browse/JDK-8177144 diff --git a/test/sun/net/www/http/HttpClient/B8025710.java b/test/sun/net/www/http/HttpClient/B8025710.java --- a/test/sun/net/www/http/HttpClient/B8025710.java +++

Re: RFR - 8159410: InetAddress.isReachable returns true for non existing IP addresses

2016-09-21 Thread Seán Coffey
spotted an interesting blog on the MSDN timeout issue here : https://www.frameflow.com/ping-utility-flaw-in-windows-api-creating-false-timeouts/ Regards, Sean. On 21/09/16 17:42, Mark Sheppard wrote: the IcmpSendEcho series of calls come with some idiosyncrasies in that there is a minimum

Re: RFR [9] 8041924: [TESTBUG] sun/net/www/http/ChunkedOutputStream/checkError.java fails on some systems

2016-06-13 Thread Seán Coffey
Nice clean up Chris. Looks fine. Regards, Sean. On 09/06/16 20:49, Chris Hegarty wrote: This test has been seen to fail intermittently. There is an assumption in the test that the client-side will fill the outgoing TCP buffer by writing 1 megabyte of data, allowing for the server-side to

Re: RFR [9] 8085785: sun/net/www/protocol/http/ZoneId.java timeout intermittently

2016-05-31 Thread Seán Coffey
Looks fine to me also Chris. Regards, Sean. On 30/05/2016 22:52, Mark Sheppard wrote: Hi Chris, this looks good ... so the server now listens on wildcard and the client uses IPv6 loopback as the destination address. The use of NO_PROXY, is good. I wouldn't have thought of that, and in

Re: RFR: 8071125: Improve exception messages in URLPermission

2016-04-20 Thread Seán Coffey
webrev updated in place with suggestion from Pavel (off thread) to place quotes around the problem values. Regards, Sean. On 20/04/16 14:33, Seán Coffey wrote: Looking for a review for these simple changes. URLPermissions is a class introduced for JDK 8. Exception messaging can be improved

RFR: 8071125: Improve exception messages in URLPermission

2016-04-20 Thread Seán Coffey
Looking for a review for these simple changes. URLPermissions is a class introduced for JDK 8. Exception messaging can be improved to capture context. https://bugs.openjdk.java.net/browse/JDK-8071125 http://cr.openjdk.java.net/~coffeys/webrev.8071125/webrev/ -- Regards, Sean.

Re: RFR JDK-8087113: Websocket API and implementation

2016-03-31 Thread Seán Coffey
On 29/03/2016 20:16, Andrej Golovnin wrote: 177 throw new IllegalArgumentException(String.valueOf(n)); >> >>Could you please provide a better message for exception here? > >What would the purpose be? It's an internal implementation detail. If this >exception is

Re: Patch for adding SO_REUSEPORT socket option

2016-02-17 Thread Seán Coffey
One comment on the supportability side from me : java/net/AbstractPlainDatagramSocketImpl.java > + case SO_REUSEPORT: > + if (o == null || !(o instanceof Boolean)) { > + throw new SocketException("bad argument for SO_REUSEPORT"); > + } > +

Re: [PING] RFR: JDK-8135259: InetAddress.getAllByName only reports "unknown error" instead of actual cause

2016-02-12 Thread Seán Coffey
wrote: Hi Sean, Thank you. I have updated copyright year to the earlier patch and added a simple test case to cover this bug. Please review the updated Webrev: http://cr.openjdk.java.net/~rpatil/8135259/webrev.01/ Regards, Ramanand. -Original Message- From: Seán Coffey Sent: Wednesday

Re: RFR 8065076/9, test/java/net/SocketPermission/SocketPermissionTest.java failed intermittently

2016-01-25 Thread Seán Coffey
The changes look fine to me also Chris. Regards, Sean. On 22/01/16 14:49, Chris Hegarty wrote: On 21/01/16 22:55, Felix Yang wrote: Hi Chris, your fix is cool. I will assign the bug to you:) a comment on this fix. The test changed system SecurityManager and it is not executed with

Re: Request for review: 8144093: JEP 244/8051498 - TLS Application-Layer Protocol Negotiation Extension

2015-12-01 Thread Seán Coffey
Hey Vinnie, question on SSLParameters.setApplicationProtocols(String[] protocols) method What happens if you pass an empty array into this method. Shouldn't it throw an IllegalArgumentException ? In ALPNExtension.java : +if (listLength < 2 || listLength + 2 != len) { +

Re: Request for review & approval: 8141260: isReachable crash in windows xp

2015-11-25 Thread Seán Coffey
Looks ok to me Rob and provides a re-introduction of the old Java_java_net_Inet4AddressImpl_isReachable0 function for XP systems where necessary. Reviewed. Approved for jdk8u-dev also. Regards, Sean. On 25/11/15 14:00, Rob McKenna wrote: forgot to cc net-dev -Rob On 24/11/15 16:37,

Re: [9] RFR 8138953: HttpURLConnection doesn't fallback to another auth scheme if negotiate process failed

2015-10-07 Thread Seán Coffey
Thanks for handling Artem. I'll leave the main review to someone more knowledgeable with http authentication schemes but can I suggest that your print the AuthenticationHeader.authPref string out with the "Negotiate process failed, fallback" logger message. It's a useful variable to capture.

Re: [8u-dev] Request for review and for approval to backport: 8072466: Deadlock when initializing MulticastSocket and DatagramSocket

2015-09-10 Thread Seán Coffey
These changes look fine to me Ivan. Approved for jdk8u-dev. Regards, Sean. On 09/09/2015 17:39, Ivan Gerasimov wrote: Hello! I'd like to backport this recent fix from jdk9 to jdk8u-dev. The fix applies *almost* cleanly after unshuffling. The only manual editing I had to do was creating

RFR [8u-dev]:8072384:Setting IP_TOS on java.net sockets not working on unix

2015-06-12 Thread Seán Coffey
Michael, I'd like to backport this fix to JDK 8u60. The port is pretty much the same as 9 except for modular path changes. The OptionsTest modified in jdk9 fix does not exist in jdk8u (test was for new API in JDK 9) As a result, I was able to modify the jdk/net/Sockets/Test.java test

Re: RFR : 8072384 : Setting IP_TOS on java.net sockets not working on unix

2015-05-25 Thread Seán Coffey
setsockopt(4, SOL_IP, IP_TOS, [128], 4) = 0 Note : 0x43 == IPV6_TCLASS 67 0x21 == IPV6_FLOWINFO_SEND 33 latest webrev : http://cr.openjdk.java.net/~coffeys/webrev.tos-may22/webrev/ Regards, Sean. On 25/03/15 17:21, Seán Coffey wrote: I didn't see any review on this request yet. I've modified

RFR : 8072384 : Setting IP_TOS on java.net sockets not working on unix

2015-02-27 Thread Seán Coffey
It looks like setting and getting the IP_TOS values on the java.net Sockets is currently broken for some scenarios. It's not possible to set the value on a ServerSocket via the jdk.net.Sockets.setOption API. See below for a webrev I'm proposing. It basically makes best efforts to set the

RFR: 7178362: Socket impls should ignore unsupported proxy types rather than throwing

2015-02-24 Thread Seán Coffey
This issue relates to another bug that I own : JDK-8062305 It seems to be an area that causes alot of issue (for plugin mainly) and the suggestion from Chris in 7178362 bug report to return a direct connection type for bad ProxySelector implementations seems appropriate. webrev :

Re: RFR: 7178362: Socket impls should ignore unsupported proxy types rather than throwing

2015-02-24 Thread Seán Coffey
for proxy: + p); // Use getHostString() to avoid reverse lookups server = ((InetSocketAddress) p.address()).getHostString(); serverPort = ((InetSocketAddress) p.address()).getPort(); -Chris. On 24 Feb 2015, at 17:24, Seán Coffey sean.cof

Re: Backporting the TCP loopback fast path (Windows) improvement to OpenJDK v7

2015-01-30 Thread Seán Coffey
Thanks all - Agreed changes pushed to 7u85 and I'll make a request to see if we can include this in 7u80 code base. regards, Sean. On 30/01/2015 16:00, Alan Bateman wrote: On 30/01/2015 12:18, Seán Coffey wrote: Alan, hadn't spotted the race issue. I guess we could delay setting

Re: Backporting the TCP loopback fast path (Windows) improvement to OpenJDK v7

2015-01-30 Thread Seán Coffey
unless I hear objections. regards, Sean. On 29/01/2015 17:31, Alan Bateman wrote: On 26/01/2015 13:48, Seán Coffey wrote: Valeriy, those changes look fine to me and I've verified that they run through testing fine also. webrev here for reference : http://cr.openjdk.java.net/~coffeys/webrev

Re: Backporting the TCP loopback fast path (Windows) improvement to OpenJDK v7

2015-01-26 Thread Seán Coffey
? Best regards, Valeriy Kopylov, Software Engineer, Akvelon, Skype: Valeriy.Kopylov *From:*Martin Sawicki (MS OPEN TECH) *Sent:* Saturday, January 24, 2015 03:21 *To:* Seán Coffey; Valery Kopylov (Akvelon); jdk7u-...@openjdk.java.net *Cc:* Kirk Shoop (MS OPEN TECH); OpenJDK Network Dev list

Re: [8u-dev] Request for approval: JDK-6933879: URISyntaxException when non-alphanumeric characters are present in scope_id

2015-01-23 Thread Seán Coffey
Konstantin, can you hold off pushing this fix to jdk8u for the moment ? It's a P4 and could have behavioural consequences (something we try and avoid in update releases). I see JDK-8071458 was logged to track IPv6 scope specifications. Let's see how this soaks into JDK 9 over coming days and

Re: Backporting the TCP loopback fast path (Windows) improvement to OpenJDK v7

2015-01-23 Thread Seán Coffey
://cr.openjdk.java.net/~coffeys/webrev.8060170.7u.v2/webrev/src/windows/native/sun/nio/ch/Net.c.cdiff.html Good to push ? I'll try and get this into 7u80 but can't guarantee that now given that we've entered the rampdown/stabilization phase. regards, Sean. On 15/01/15 12:09, Seán Coffey wrote: Valeriy, I used

RFR: 8065994: HTTP Tunnel connection to NTLM proxy reauthenticates instead of using keep-alive

2015-01-22 Thread Seán Coffey
Looking for a review around this issue that came in as a reported performance regression in NTLM proxy authentication. It turned out that HttpsClients were being discarded after Proxy SocketAddress equality tests failed. Lack of caching is expensive in terms for performance for TLS and

RFR : 8046588 8047187

2014-10-03 Thread Seán Coffey
Following bugs need to be backported to jdk7u-dev to correct issues where SO_FLOW_SLA availability might not be available or where sufficient permissions are not in place. https://jbs.oracle.com/bugs/browse/JDK-8046588 https://jbs.oracle.com/bugs/browse/JDK-8047187 Testcase changes keep to

RFR : 8032808, 8047186, 8029607, 8048212 - SO_FLOW_SLA support for solaris, Set TOS in IPv6 header

2014-08-22 Thread Seán Coffey
I'd like to backport these fixes into the jdk7u-dev codeline. They're already in jdk8u-dev. https://bugs.openjdk.java.net/browse/JDK-8032808 - SO_FLOW_SLA support for solaris https://bugs.openjdk.java.net/browse/JDK-8047186 - Exception handling change linked to above

Re: RFR : 8032808, 8047186, 8029607, 8048212 - SO_FLOW_SLA support for solaris, Set TOS in IPv6 header

2014-08-22 Thread Seán Coffey
was made to know about the new NetworkPermission class. I don't think we backported it to 8 even. But, for completeness sake we might want to backport it to both of these releases at some point in the future. Michael On 22/08/14 16:24, Seán Coffey wrote: I'd like to backport these fixes

Re: RFR: 8044766 New jdk.net classes have @since 1.9 tags in 8u20

2014-06-05 Thread Seán Coffey
Just on a technical point Michael - these classes came in for JDK 8u20. @since 1.8 tag might be confusing. I'd suggest that we just omit the @since tags for 8u20. (can be documented in release notes) Maybe we should seek clarification around whether a tag like @since 1.8.0_20 could be used.

Re: RFR : 7076487 : (sctp) SCTP API classes does not exist in JDK for Mac

2014-02-26 Thread Seán Coffey
thanks Michael. Will update copyrights before pushing. regards, Sean. On 26/02/14 16:12, Michael McMahon wrote: Looks good to me. The copyright date on the new src/macosx files could be updated though. Thanks Michael On 26/02/14 15:45, Seán Coffey wrote: Looking to backport this one

Re: RFR : 8024952 : ClassCastException in PlainSocketImpl.accept() when using custom socketImpl

2013-10-01 Thread Seán Coffey
Taken feedback on board. New webrev : http://cr.openjdk.java.net/~coffeys/webrev.8024952.2/webrev/ I've managed to get confirmation from original submitter that this works ok for them. regards, Sean. On 20/09/2013 11:29, Seán Coffey wrote: Dmitry, You're right. I was cautious in moving

Re: RFR : 8024952 : ClassCastException in PlainSocketImpl.accept() when using custom socketImpl

2013-10-01 Thread Seán Coffey
On 01/10/2013 13:37, Daniel Fuchs wrote: Hi Seán, This looks simpler and better :-) However I wonder, do you still need to catch NPE in CustomSocketImplFactory.main ? Daniel, Since I'm only creating a dummy socketImpl to test the classcastexception, no real networking stack is in place

Re: RFR : 8024952 : ClassCastException in PlainSocketImpl.accept() when using custom socketImpl

2013-09-20 Thread Seán Coffey
get this corrected and tested. Thanks for pointers. Sean. On 20/09/13 10:20, Dmitry Samersoff wrote: Sean, It might be possible to set s.fd to delegate.fd before call to impl.accept and therefore merge if instanceOf block. -Dmitry On 2013-09-20 00:21, Seán Coffey wrote: Looking for review

RFR : 8024952 : ClassCastException in PlainSocketImpl.accept() when using custom socketImpl

2013-09-19 Thread Seán Coffey
Looking for review on recently reported issue. Issue seen on windows when a custom socketImpl is in use. bug report : https://bugs.openjdk.java.net/browse/JDK-8024952 webrev : http://cr.openjdk.java.net/~coffeys/webrev.8024952/webrev/ Regards, Sean.

Re: RFR [8022584] Memory leak in some NetworkInterface methods

2013-08-09 Thread Seán Coffey
On the regression testcase theme, it got me thinking as to whether we've any java APIs which can query what the native heap usage of the JVM. Is that available over JMX ? I tried the MBeanServer approach but didn't get the expected results. Queried the NonHeapMemoryUsage object. something

RFR : 8007315 HttpURLConnection.filterHeaderField method returns null where empty string is expected

2013-02-19 Thread Seán Coffey
8007315 deals with an issue in SAAJ code where a NullPointerException is seen. The SAAJ code makes the assumption that non-null keys obtained from a httpURLConnection header will contain non-null values : 294 key = httpConnection.getHeaderFieldKey(i); 295

RFR: 7181793: Socket getInputStream/getOutputStream create streams that cannot be GC'ed until Socket is closed

2012-10-09 Thread Seán Coffey
Requesting a review for this bug which cropped up whilst cleaning up the FileDescriptor associated streams some time back (7105952) Turns out that each call to a socket.getOutputStream() creates a new instance of SocketOutputStream. I'm not seeing any reason to why that code exists. One

Re: [7u8] Request for Approval for CR 7188755: Crash due to missing synchronization on gconf_client in DefaultProxySelector.c

2012-08-28 Thread Seán Coffey
Approved. regards, Sean. On 28/08/2012 10:00, Chris Hegarty wrote: Hi, This is a request for approval to backport the fix for 7188755 from JDK8 to 7u8. Bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7188755 7188755: Crash due to missing synchronization on gconf_client in

Re: jprt build failures on windows

2011-10-11 Thread Seán Coffey
New changes look fine Chris. regards, Sean. On 11/10/2011 11:51, Chris Hegarty wrote: There was a cut'n'paste error in the original change for CR 7098719. super.create(stream) should be reinstated. After the above, now the (closed) regression test amended for CR 7098719 fails. The reason is