Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 29300 invoked from network); 7 Mar 2011 19:32:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Mar 2011 19:32:24 -0000 Received: (qmail 80793 invoked by uid 500); 7 Mar 2011 19:32:24 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 80742 invoked by uid 500); 7 Mar 2011 19:32:23 -0000 Mailing-List: contact commits-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 commits@harmony.apache.org Received: (qmail 80616 invoked by uid 99); 7 Mar 2011 19:32:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Mar 2011 19:32:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Mar 2011 19:32:21 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7D84D39BD46 for ; Mon, 7 Mar 2011 19:31:59 +0000 (UTC) Date: Mon, 7 Mar 2011 19:31:59 +0000 (UTC) From: =?utf-8?Q?Martin_Storsj=C3=B6_=28JIRA=29?= To: commits@harmony.apache.org Message-ID: <630238988.1965.1299526319510.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <139586399.418.1298754598671.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (HARMONY-6682) SocketOutputStream doesn't handle short writes properly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6682?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13= 003525#comment-13003525 ]=20 Martin Storsj=C3=B6 commented on HARMONY-6682: ----------------------------------------- The same issue is also reported to Android as a normal issue, in http://cod= e.google.com/p/android/issues/detail?id=3D15304. > SocketOutputStream doesn't handle short writes properly > ------------------------------------------------------- > > Key: HARMONY-6682 > URL: https://issues.apache.org/jira/browse/HARMONY-6682 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: Tested/noticed on Android, same issue identified in = the Harmony code base, too > Reporter: Martin Storsj=C3=B6 > Attachments: outputstream-shortwrite.patch > > > Even blocking writes can return before the full amount is written, e.g. i= f a signal is received, or for any other arbitrary reason. > The java.io.OutputStream.write() interface that SocketOutputStream implem= ents returns void, and cannot report short writes to the caller, and theref= ore is required to loop to retry writing until everything is written, or un= til writing fails. > The same issue is reported to Android at https://review.source.android.co= m/21459. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira