From dev-return-24196-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Fri May 27 19:11:09 2011 Return-Path: X-Original-To: apmail-apr-dev-archive@www.apache.org Delivered-To: apmail-apr-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 22EE443E4 for ; Fri, 27 May 2011 19:11:09 +0000 (UTC) Received: (qmail 34894 invoked by uid 500); 27 May 2011 19:11:08 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 34830 invoked by uid 500); 27 May 2011 19:11:08 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 34822 invoked by uid 99); 27 May 2011 19:11:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 May 2011 19:11:08 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of justin.erenkrantz@gmail.com designates 74.125.82.178 as permitted sender) Received: from [74.125.82.178] (HELO mail-wy0-f178.google.com) (74.125.82.178) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 May 2011 19:11:03 +0000 Received: by wyb33 with SMTP id 33so1808839wyb.37 for ; Fri, 27 May 2011 12:10:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=JC+/pKclS4fXnNZTgrwOrBPsGA+HLszDeu0lShy3zDg=; b=JuR3DtpVyM1fNogj3KGKXaF+caGNHwBrjd3kzqWE6GWbFpnzp4m43POH8LzigUWPRk zqTMvwuIFAlkE9RwbnjbNN6X1QZQhDc9FhTFq6Qxc70xMye6gGD84sMi/EvjYKDguKFh yStKl3PH2aokWRv3kF62P2aW5zFgj0zr0y8ag= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=Uq2uekQZiBzlakSEpT7HmhpZZYBg4MN7YpbMxlWWQE7T2xXJe+nZQcFiT9IXCo4i8F dUOHA23yQISGABoLDgHZYETRvfvOWg9sDg74rldtxSWgvV5+pBBTnGJnUNph1/70Sk0/ H+QCKCZ5haNAEBnO9z95+JhWYibs0jAd8pzSg= MIME-Version: 1.0 Received: by 10.216.79.5 with SMTP id h5mr2311258wee.110.1306523442511; Fri, 27 May 2011 12:10:42 -0700 (PDT) Sender: justin.erenkrantz@gmail.com Received: by 10.216.3.135 with HTTP; Fri, 27 May 2011 12:10:42 -0700 (PDT) In-Reply-To: References: <03230006CA5E1B4D89CCC1DC0BF2209C038A33E416@NVS0192.nedap.local> <4DC3B125.8070508@nedap.com> Date: Fri, 27 May 2011 09:10:42 -1000 X-Google-Sender-Auth: vT7JhCY1S0NPFo6NCi7oWltvI6U Message-ID: Subject: Re: 100% cpu with APR on Windows From: Justin Erenkrantz To: Jeff Trawick Cc: dev@apr.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Thu, May 26, 2011 at 10:30 PM, Justin Erenkrantz wrote: > Has anyone else seen this behavior? =A0Anybody have any clever > workarounds? =A0-- justin Using apr_pollset_create_ex() with APR_POLLSET_SELECT allows serf to be happy on Win32. Besides connect() failing, there is at least one other failure due to WSAPoll [1] - I'm not terribly sure that this should be the default given how sketchy this API appears to be. Thoughts? I don't really want to put an #ifdef Win32 to avoid using the default in serf...but...well... -- justin 1. http://code.google.com/p/serf/issues/detail?id=3D74