Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 88114 invoked from network); 29 Nov 2007 14:07:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Nov 2007 14:07:15 -0000 Received: (qmail 7870 invoked by uid 500); 29 Nov 2007 14:07:02 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 7838 invoked by uid 500); 29 Nov 2007 14:07:02 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 7827 invoked by uid 99); 29 Nov 2007 14:07:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2007 06:07:02 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alexei.zakharov@gmail.com designates 209.85.146.177 as permitted sender) Received: from [209.85.146.177] (HELO wa-out-1112.google.com) (209.85.146.177) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2007 14:06:43 +0000 Received: by wa-out-1112.google.com with SMTP id k22so2362005waf for ; Thu, 29 Nov 2007 06:06:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=FV8m4Oij1DTKldpz1cV/KN6PhOyJJY3NHprfhSKvip0=; b=OXlH0PZvHgUEy0V846T2MtibTHxjH+w8u/rQIMjisFBBQSeZkiMsFo4AVn+nGGya4HpbPVLI1r16gwU9zfx8i59PCW9oeILaBQpsbUv9dIaS6GyRuD/XR7QfKTZEA3EaVxJKUVKuj0HU7smbezpfKmZuuZk01IZg+2AhuA9HYAk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=KzeRLk1KKPBEcSckllMP+HNTBLJyZtPNcO5yoVldJeCk1+3J9gtO0PL0fqZbcRahrVnTCeLAAYDQDj7jB5sSwXg8T2o6iMiO6YE3zepq+uB2fuiedbXLKOceThxtfEuP6TayXJ8q4GotPApK++Q8RUigJ9PFiHUSJ2lR6feBNAg= Received: by 10.114.169.2 with SMTP id r2mr608717wae.1196345206666; Thu, 29 Nov 2007 06:06:46 -0800 (PST) Received: by 10.114.192.15 with HTTP; Thu, 29 Nov 2007 06:06:46 -0800 (PST) Message-ID: <2c9597b90711290606l48fd13bfj240ca335ce067b5a@mail.gmail.com> Date: Thu, 29 Nov 2007 17:06:46 +0300 From: "Alexei Zakharov" To: dev@harmony.apache.org Subject: [classlib][nio] jetty corrupts big static files MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Hi all, If you keep track of CC reports (either at [1] or by reading alerts@harmony.apache.org) then you probably noticed that we have intermittent failures of Jetty scenario on Linux'es for quite long period of time already. I've spent some time on investigation of this failure and found that Jetty-on-Harmony has issues with handling of big static files. In most cases it simply returns corrupted data. However, sometimes it hangs or even crashes. I've put the detailed description of this problem here [2]. In brief I think we have bugs in Harmony implementation of NIO selectors. Jetty works ok if its default SelectChannelConnector is replaced with any other of its connectors like SockerConnector (no NIO) or BlockingChannelConnector (NIO, but no selectors). Stack traces also point to problems somewhere in Java_org_apache_harmony_luni_platform_OSNetworkSystem_selectImpl . IMO such issue is rather critical because it prevents default configuration of Jetty from working correctly on Harmony. Unfortunately I'm not very familiar with NIO code by myself. So I think it would be nice if our NIO experts can take a look at it. And IMO it would be good to have it fixed till M4. [1] http://people.apache.org/~mloenko/snapshot_testing/script/snapshots_summary.html [2] https://issues.apache.org/jira/browse/HARMONY-5219 Thanks, Alexei