Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-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 76ED410F4D for ; Tue, 19 Nov 2013 21:59:01 +0000 (UTC) Received: (qmail 68913 invoked by uid 500); 19 Nov 2013 21:59:00 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 68863 invoked by uid 500); 19 Nov 2013 21:59:00 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 68855 invoked by uid 99); 19 Nov 2013 21:59:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Nov 2013 21:59:00 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bert@qqmail.nl designates 74.125.83.54 as permitted sender) Received: from [74.125.83.54] (HELO mail-ee0-f54.google.com) (74.125.83.54) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Nov 2013 21:58:56 +0000 Received: by mail-ee0-f54.google.com with SMTP id e51so3320723eek.41 for ; Tue, 19 Nov 2013 13:58:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:references:in-reply-to:subject:date :message-id:mime-version:content-type:content-transfer-encoding :thread-index:content-language; bh=FRhmXTlOTxe1C3jiWsUP+Hb6vaWeC6IMMDZyP59OOEs=; b=Dods7bHY6Grw8DAi57K7OGTsvtS/D0rQbPjNLHOj6PAdqTHtOxp/OkvepIEAeWJB86 7YL8EIPB0xbnLUJo+Xgosw7+KKSdQrJ1aSFgKlFsWDQ6WS/azWSLpr75ZyZ9LqOlHeVh i9eQWQ98OGrVf5To7aLMn7AK7pp8rLY8oZpejujnoMQ9WrVRFN9jVCz0PfVzgPgeiFqZ CNZGhP9Op9n24Fslgg/3MTACY36Lb/3tlNKKVmW8rwUwqgJfA503qA8A5Ryb3wOZN4eU FfDkMvi5kGQdiWGHQQdoZ+COnDh95Kh6D8Bg2gnCswC0PODjqj6wubKyV9k5NaB46kqV TsWg== X-Gm-Message-State: ALoCoQmi+eKKpR38YkBA3+m52bBMFmrwfQ1Dy40notJHbj/Pwf4xANV5D7cB70xz7O/9G+4HwkWd X-Received: by 10.15.56.7 with SMTP id x7mr1244100eew.43.1384898314151; Tue, 19 Nov 2013 13:58:34 -0800 (PST) Received: from i72600 ([2001:610:66e:0:59f6:6194:a164:dbd7]) by mx.google.com with ESMTPSA id 8sm52934413eem.15.2013.11.19.13.58.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Nov 2013 13:58:33 -0800 (PST) From: "Bert Huijben" To: References: <745AFCC4-CA7C-4FEC-9D4A-5B3E2263D44E@sharp.fm> <40C2A8E4-412F-4FA8-8B36-E5BB0CA8CA85@sharp.fm> In-Reply-To: <40C2A8E4-412F-4FA8-8B36-E5BB0CA8CA85@sharp.fm> Subject: RE: [Patch] non blocking writes in core Date: Tue, 19 Nov 2013 22:58:21 +0100 Message-ID: <013c01cee572$77a46ce0$66ed46a0$@qqmail.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQIsdc/BTrni4RnEEBSVzlTehwRT7wFhYjZrAQDUlKGZXucskA== Content-Language: nl X-Virus-Checked: Checked by ClamAV on apache.org > -----Original Message----- > From: Graham Leggett [mailto:minfrin@sharp.fm] > Sent: dinsdag 19 november 2013 18:44 > To: dev@httpd.apache.org > Subject: Re: [Patch] non blocking writes in core >=20 > On 18 Nov 2013, at 1:24 PM, "Pl=FCm, R=FCdiger, Vodafone Group" > wrote: >=20 > > + rv =3D send_brigade_nonblocking(net->client_socket, bb, > > + &(ctx->bytes_written), c); > > + if (APR_STATUS_IS_EAGAIN(rv)) { > > + setaside_remaining_output(f, ctx, bb, c); > > + } > > + else if (rv !=3D APR_EAGAIN) { > > > > What if rv is APR_SUCCESS? >=20 > This is indeed broken, fixed. This also breaks unsafe for platforms where there are multiple EAGAIN values, like on Windows where APR_STATUS_IS_EAGAIN() returns true for = quite a few error codes. Bert