hg: jdk8/tl/jdk: 7169142: CookieHandler does not work with localhost

2013-06-13 Thread kurchi . subhra . hazra
Changeset: 42f9ad39bf42 Author:khazra Date: 2013-06-13 17:48 -0700 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/42f9ad39bf42 7169142: CookieHandler does not work with localhost Summary: Add .local to derived effective hostnames without dot Reviewed-by: chegar ! src/share/classes

Re: RFC compliant address selection vs. home made getaddrinfo

2013-06-13 Thread Bernd Eckenfels
Hello Michael, Am 13.06.2013, 12:24 Uhr, schrieb Michael McMahon : This does cause some confusion. The method getCanonicalHostName() was never intended to return the CNAME from DNS. Rather it was intended to return the name that results from a reverse lookup of the IP address (ie the PTR).

IPv6 Guide - C/Java samples not comparable

2013-06-13 Thread Bernd Eckenfels
Hello, Am 13.06.2013, 11:39 Uhr, schrieb Alan Bateman : There are details on how to configure it at the end of this page: http://docs.oracle.com/javase/7/docs/technotes/guides/net/ipv6_guide/index.html Speaking of this guide, there are two problems with this as well: First of all the Title is

Re: PlainDatagramSocketImpl questions

2013-06-13 Thread Bernd Eckenfels
Am 13.06.2013, 22:47 Uhr, schrieb Alan Bateman : Yes, it looks like close is missing in a few places (but probably hasn't been noticed as it's unlikely that the setsockopt will fail). Linux Kernel is using in those situations an error-out label. if () { Throw... goto error; } ... error:

Re: PlainDatagramSocketImpl questions

2013-06-13 Thread Alan Bateman
On 13/06/2013 20:34, John Zavgren wrote: Greetings: Why does the procedure: Java_java_net_PlainDatagramSocketImpl_datagramSocketCreate(...), defined in the file: jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c, close the given socket before returning after an error in some cases, but n

PlainDatagramSocketImpl questions

2013-06-13 Thread John Zavgren
Greetings: Why does the procedure: Java_java_net_PlainDatagramSocketImpl_datagramSocketCreate(...), defined in the file: jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c, close the given socket before returning after an error in some cases, but not others? Shouldn't the behaviour be the

hg: jdk8/tl/jdk: 8015421: NegativeArraySizeException occurs in ChunkedOutputStream() with Integer.MAX_VALUE

2013-06-13 Thread kurchi . subhra . hazra
Changeset: ff83bd43e36a Author:khazra Date: 2013-06-13 11:23 -0700 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/ff83bd43e36a 8015421: NegativeArraySizeException occurs in ChunkedOutputStream() with Integer.MAX_VALUE Summary: Ensure integer overflow does not occur Reviewed-by: ch

hg: jdk8/tl/jdk: 7181748: java/lang/ThreadGroup/Suspend.java test fails intermittently

2013-06-13 Thread chris . hegarty
Changeset: f3609297a868 Author:igerasim Date: 2013-06-13 15:15 +0400 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/f3609297a868 7181748: java/lang/ThreadGroup/Suspend.java test fails intermittently Reviewed-by: chegar, dholmes ! test/java/lang/ThreadGroup/Suspend.java

Re: RFC compliant address selection vs. home made getaddrinfo

2013-06-13 Thread Michael McMahon
Hi Bernd, On 12/06/13 22:05, Bernd Eckenfels wrote: Hello, I have given a (german) talk about Java and IPv6 at the largest european IPv6 Congress last week in Frankfurt. As part of my preparation for that talk was looking at some of the details of Java IPv6 networking. I have some points to

Re: RFC compliant address selection vs. home made getaddrinfo

2013-06-13 Thread Chris Hegarty
On 06/13/2013 10:37 AM, Alan Bateman wrote: I agree this should be be re-examined. The original rational for the re-ordering (and the java.net.preferIPv6Addresses property) was for backward compatibility reasons. Even today, it is still common to encounter applications or environments that assum

Re: RFC compliant address selection vs. home made getaddrinfo

2013-06-13 Thread Alan Bateman
On 12/06/2013 23:01, Matthew Hall wrote: On Wed, Jun 12, 2013 at 11:05:00PM +0200, Bernd Eckenfels wrote: If you think it is not a good idea to fix this, I would vote for an alternate name service provider which can be selected if rfc compliant behavior is needed. I agree with the other points.

Re: RFC compliant address selection vs. home made getaddrinfo

2013-06-13 Thread Alan Bateman
I agree this should be be re-examined. The original rational for the re-ordering (and the java.net.preferIPv6Addresses property) was for backward compatibility reasons. Even today, it is still common to encounter applications or environments that assume IPv4 addresses. As you note, you can co

hg: jdk8/tl/jdk: 8016251: Balanced spliterator for SpinedBuffer

2013-06-13 Thread paul . sandoz
Changeset: a50394c44464 Author:psandoz Date: 2013-06-13 11:13 +0200 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/a50394c44464 8016251: Balanced spliterator for SpinedBuffer Reviewed-by: mduigou Contributed-by: Brian Goetz , Peter Levart , Paul Sandoz ! src/share/classes/java/u

Re: Code Review Request: 7169142: CookieHandler does not work with localhost

2013-06-13 Thread Chris Hegarty
I think your changes are correct here, and thanks for adding a test. -Chris. On 06/13/2013 12:09 AM, Kurchi Hazra wrote: Hi, The problem that this bug points out is that when a cookie is from a localhost and no domain is set, our implementation sets the default domain of the cookie to it