SSL/TLS cipher selection

2013-05-09 Thread Matthew Hall
Hello, I discovered some unexpected behavior in how Java chooses cipher suites for SSL/TLS. I wanted to know if its method of cipher suite selection is documented somewhere so I could understand why it's not working right for me in certain cases. Notably, if I configure this preference list:

hg: jdk8/tl/jdk: 30 new changesets

2013-05-09 Thread lana . steuck
Changeset: 78d08fc2dd12 Author:mullan Date: 2013-04-25 11:18 -0400 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/78d08fc2dd12 8011313: OCSP timeout set to wrong value if com.sun.security.ocsp.timeout not defined Reviewed-by: vinnie ! src/share/classes/sun/security/provider/certp

hg: jdk8/tl/hotspot: 66 new changesets

2013-05-09 Thread lana . steuck
Changeset: d0081bfc425c Author:katleman Date: 2013-05-02 13:35 -0700 URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/d0081bfc425c Added tag jdk8-b88 for changeset 8482058e74bc ! .hgtags Changeset: 57ac6a688ae6 Author:amurillo Date: 2013-04-26 00:40 -0700 URL: ht

hg: jdk8/tl/langtools: 3 new changesets

2013-05-09 Thread lana . steuck
Changeset: adec2a5d510a Author:katleman Date: 2013-05-02 13:35 -0700 URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/adec2a5d510a Added tag jdk8-b88 for changeset a1e10f3adc47 ! .hgtags Changeset: ec434cfd2752 Author:lana Date: 2013-05-06 11:53 -0700 URL: http

hg: jdk8/tl/jaxp: 4 new changesets

2013-05-09 Thread lana . steuck
Changeset: 21f75e572cb3 Author:katleman Date: 2013-05-02 13:35 -0700 URL: http://hg.openjdk.java.net/jdk8/tl/jaxp/rev/21f75e572cb3 Added tag jdk8-b88 for changeset 7122f7bb0fcc ! .hgtags Changeset: 893d2ba8bbea Author:lana Date: 2013-05-06 11:41 -0700 URL: http://hg

hg: jdk8/tl/nashorn: 2 new changesets

2013-05-09 Thread lana . steuck
Changeset: 501bc4aeb1b1 Author:katleman Date: 2013-05-02 13:35 -0700 URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/501bc4aeb1b1 Added tag jdk8-b88 for changeset 40c107d1ae6f ! .hgtags Changeset: 45ce27fbe272 Author:lana Date: 2013-05-06 11:53 -0700 URL: http:/

hg: jdk8/tl/jaxws: Added tag jdk8-b88 for changeset 24fa5452e5d4

2013-05-09 Thread lana . steuck
Changeset: 88838e08e4ef Author:katleman Date: 2013-05-02 13:35 -0700 URL: http://hg.openjdk.java.net/jdk8/tl/jaxws/rev/88838e08e4ef Added tag jdk8-b88 for changeset 24fa5452e5d4 ! .hgtags

hg: jdk8/tl/corba: 2 new changesets

2013-05-09 Thread lana . steuck
Changeset: 1f13a798d1b8 Author:katleman Date: 2013-05-02 13:34 -0700 URL: http://hg.openjdk.java.net/jdk8/tl/corba/rev/1f13a798d1b8 Added tag jdk8-b88 for changeset 4e3a881ebb1e ! .hgtags Changeset: fe4150590ee5 Author:lana Date: 2013-05-06 11:41 -0700 URL: http://h

hg: jdk8/tl: 8 new changesets

2013-05-09 Thread lana . steuck
Changeset: 1dfcc874461e Author:omajid Date: 2013-04-29 12:34 -0400 URL: http://hg.openjdk.java.net/jdk8/tl/rev/1dfcc874461e 8013480: fix zero build on arm Reviewed-by: erikj ! common/autoconf/generated-configure.sh ! common/autoconf/platform.m4 ! common/autoconf/spec.gmk.in Change

hg: jdk8/tl/jdk: 8012646: Pattern.splitAsStream

2013-05-09 Thread mike . duigou
Changeset: 498ea4c3a4c6 Author:psandoz Date: 2013-05-01 18:40 +0200 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/498ea4c3a4c6 8012646: Pattern.splitAsStream Reviewed-by: forax, plevart, alanb Contributed-by: Ben Evans , Paul Sandoz ! src/share/classes/java/util/regex/Pattern.j

Re: Non-standard socket options?

2013-05-09 Thread Matthew Hall
On Thu, May 09, 2013 at 02:11:22PM -0700, Matthew Hall wrote: > Brian, > > That option is very new and non-standard so it doesn't appear anywhere in the > JDK code. > > I think you'll have to make a native library, and use this method: > > http://stackoverflow.com/questions/11455803/most-effici

Re: Non-standard socket options?

2013-05-09 Thread Matthew Hall
On Thu, May 09, 2013 at 01:49:02PM -0700, Brian Call wrote: > Is there any way to make use of a non-standard socket option in Java? Having > spoken with Neil Horman lead networking developer over at Red Hat, he > mentioned that by passing in the socket option IP_MULTICAST_ALL with a value > of '

Re: Code Review Request: 8014254: Selector in HttpServer introduces a 1000 ms delay when using KeepAlive

2013-05-09 Thread Kurchi Hazra
I have re-arranged the code a little, so that the events are handled first, any freed up connections are then registered with the selector, post which select() is called. This removes the bottleneck in a single threaded server receiving requests from the same client with a high frequency. http

Non-standard socket options?

2013-05-09 Thread Brian Call
Hi Guys, My name is Brian Call and I'm a software developer for Sotera Wireless. I'm currently developing a relatively complex multicast application using the jdk7 selector-based I/O for multicast and I've run in to a pretty major hurdle. By "complex", I mean that I have a single bound socket j

Re: RFR JDK7188517

2013-05-09 Thread John Zavgren
Greetings: I made a mistake in my last RFR posting... the URL for the latest modifications is: http://cr.openjdk.java.net/~jzavgren/7188517/webrev.04/ instead of: http://cr.openjdk.java.net/~jzavgren/7188517/webrev.03/ The most recent change is to reinstate the original test that tested for cooki

Re: RFR JDK7188517

2013-05-09 Thread Kurchi Hazra
I am guessing you meant to send http://cr.openjdk.java.net/~jzavgren/7188517/webrev.04/ which looks ok to me. - Kurchi On 5/9/2013 8:09 AM, Chris Hegarty wrote: Looks ok to me. -Chris. On 05/09/2013 03:42 PM, John Zavgren wrote: Chris, et alia: I put the reinstated the old test. http://cr.o

Re: RFR JDK7188517

2013-05-09 Thread Chris Hegarty
Looks ok to me. -Chris. On 05/09/2013 03:42 PM, John Zavgren wrote: Chris, et alia: I put the reinstated the old test. http://cr.openjdk.java.net/~jzavgren/7188517/webrev.03/ John - Original Message - From: chris.hega...@oracle.com To: john.zavg...@oracle.com Cc: kurchi.subhra.ha...@o

Re: RFR JDK7188517

2013-05-09 Thread John Zavgren
Chris, et alia: I put the reinstated the old test. http://cr.openjdk.java.net/~jzavgren/7188517/webrev.03/ John - Original Message - From: chris.hega...@oracle.com To: john.zavg...@oracle.com Cc: kurchi.subhra.ha...@oracle.com, net-dev@openjdk.java.net Sent: Thursday, May 9, 2013 4:39:29

Re: Code Review Request: 8014254: Selector in HttpServer introduces a 1000 ms delay when using KeepAlive

2013-05-09 Thread Kurchi Subhra Hazra
There's something fishy here. So are there are non I/O events queued up that will not be serviced more quickly? Shouldn't adding events cause the Selector to wakeup so that it doesn't matter what the timeout value is. - This doesn't quite work if we have a single thread doing everything.

Re: Code Review Request: 8014254: Selector in HttpServer introduces a 1000 ms delay when using KeepAlive

2013-05-09 Thread Chris Hegarty
On 05/09/2013 01:56 AM, Kurchi Hazra wrote: On 5/8/2013 4:35 PM, Matthew Hall wrote: On Wed, May 08, 2013 at 04:06:10PM -0700, Kurchi Hazra wrote: com.sun.net.httpServer uses a selector to get notified about interesting events (such as arrival of a new connection, or data available to read on

Re: RFR JDK7188517

2013-05-09 Thread Chris Hegarty
John, I think you can simply reinstate http://hg.openjdk.java.net/jdk8/jdk8/jdk/diff/7bd32bfc0539/test/java/net/CookieHandler/TestHttpCookie.java -Chris. On 05/08/2013 09:02 PM, Kurchi Hazra wrote: I would have thrown an exception if the IllegalArgumentException is not obtained, otherwise the

Re: Code Review Request: 8014254: Selector in HttpServer introduces a 1000 ms delay when using KeepAlive

2013-05-09 Thread Alan Bateman
On 09/05/2013 00:06, Kurchi Hazra wrote: Hi, com.sun.net.httpServer uses a selector to get notified about interesting events (such as arrival of a new connection, or data available to read on an existing connection when using keep-alive), but imposes a timeout of 1000 ms on the select()