Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6F89AC909 for ; Sat, 7 Jul 2012 21:07:32 +0000 (UTC) Received: (qmail 60039 invoked by uid 500); 7 Jul 2012 21:07:31 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 59975 invoked by uid 500); 7 Jul 2012 21:07:31 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 59966 invoked by uid 99); 7 Jul 2012 21:07:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Jul 2012 21:07:31 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [80.12.242.29] (HELO smtpout.wanadoo.co.uk) (80.12.242.29) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Jul 2012 21:07:22 +0000 Received: from mail.homeinbox.net ([2.24.211.42]) by mwinf5d01 with ME id XZ721j0030vSH1u03Z72M1; Sat, 07 Jul 2012 23:07:02 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.homeinbox.net (Postfix) with ESMTP id 23D0FEAB6BD for ; Sat, 7 Jul 2012 22:07:02 +0100 (BST) X-Virus-Scanned: Debian amavisd-new at homeinbox.net Received: from mail.homeinbox.net ([127.0.0.1]) by localhost (mail.homeinbox.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G74fAzYmQRxw for ; Sat, 7 Jul 2012 22:06:58 +0100 (BST) Received: from [192.168.23.9] (study03.dev.local [192.168.23.9]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.homeinbox.net (Postfix) with ESMTPSA id 31490EAB6B8 for ; Sat, 7 Jul 2012 22:06:58 +0100 (BST) Message-ID: <4FF8A4F1.8050007@apache.org> Date: Sat, 07 Jul 2012 22:06:57 +0100 From: Mark Thomas User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: svn commit: r1358055 - in /tomcat/trunk: java/org/apache/catalina/connector/ java/org/apache/catalina/core/ java/org/apache/coyote/ java/org/apache/coyote/ajp/ java/org/apache/coyote/http11/ java/org/apache/coyote/spdy/ java/org/apache/tomcat/util/net References: <024701cd5b47$67830da0$368928e0$@hanik.com> <034801cd5b95$5020bd30$f0623790$@hanik.com> <4FF8408E.3020903@apache.org> In-Reply-To: <4FF8408E.3020903@apache.org> X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 07/07/2012 14:58, Mark Thomas wrote: > On 06/07/2012 17:35, Filip Hanik (mailing lists) wrote: >> Turning on Java 7 does change the test landscape. >> Right now, I can get the test suite to run fine on Java 6, but lots of errors on Java 7 > > Hmm. Not good (that it worked with Java 6 but not Java 7). > > > I've tracked down the first of these issues. Calling > > java.nio.channels.SocketChannel.socket().setTrafficClass() > > after > > socketChannel.connect() > > has been called triggers a SocketException. Moving the setTrafficClass() > call to before connect() fixes the issue. > > Tests on Java 6 show that the setTrafficClass() was having no effect if > called after connect(). It looks like Java 7 has started to throw an > exception when the setter has no effect. > > On this basis, I' say that this particular issue is a long standing bug > that was masked by Java 6 and is now visible with Java 7. > > I'll do a code review and move the setTrafficClass() calls as necessary. Having done all of this, some further research on the users list suggests that this is a Windows XP / Server 2003 specific issue. That means the code I deleted in the accept() case almost certainly needs to be restored. I have some ideas for how this might be handled but I want to check a few things first. I should have something some time tomorrow. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org