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 0A5161118C for ; Mon, 19 May 2014 07:52:38 +0000 (UTC) Received: (qmail 62795 invoked by uid 500); 19 May 2014 07:52:37 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 62713 invoked by uid 500); 19 May 2014 07:52:37 -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 62705 invoked by uid 99); 19 May 2014 07:52:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2014 07:52:37 +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 steve.m.hay@googlemail.com designates 209.85.214.170 as permitted sender) Received: from [209.85.214.170] (HELO mail-ob0-f170.google.com) (209.85.214.170) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2014 07:52:33 +0000 Received: by mail-ob0-f170.google.com with SMTP id uy5so5718572obc.15 for ; Mon, 19 May 2014 00:52:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=YhVuC0uRfu7DEI2MM7Rimlz9jFVmIspdC6MAP4iuGCc=; b=tUBUT0SxibejpPyJJp6ErX/FWNMcAMQtq62iiuepoEPGTmKGXhiNdNUSinUY2mF8Sb ppQg5J40yH+yAB0KWS+GPddjjp1jzugrA6w19PGunoUS02qlEMmBEo09XwYRzHMRNf8V pzMCuHidmmIjeO2yw9P18RWhJZ6sL6fmhc2IOSjVI4Qg9abuXfyH4Bd9uv7M28ZzLBIX J6ZUotk8RBfHgGmtva6MjSo8WMPeJ/A6BQWj7oBB+TF8mHGt1goUns9vZEHsRZFIDTNC h6p3Vvk9CajSLTIzq+VuZCsgm18aM5Lf6uTfnR3xgQu1jwW5ovmgUiXnRxeJgvGjgqIx Uctw== MIME-Version: 1.0 X-Received: by 10.60.41.2 with SMTP id b2mr22383022oel.57.1400485932865; Mon, 19 May 2014 00:52:12 -0700 (PDT) Received: by 10.60.83.1 with HTTP; Mon, 19 May 2014 00:52:12 -0700 (PDT) Date: Mon, 19 May 2014 08:52:12 +0100 Message-ID: Subject: Request for help with failing apr_socket_recv() call on Windows From: Steve Hay To: dev@apr.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org I'm trying to figure out why four tests in the mod_perl test suite fail with httpd-2.4.x when they succeed just fine with httpd-2.2.x. (I'm using 2.4.9 and 2.2.26, with the httpd24threading branch of modperl in SVN, where development work towards support for 2.4.x is nearly complete.) One of the tests is t/protocol/echo_block.t. This obtains a $socket from Apache::TestRequest::vhost_socket(), prints "hello" to it and tries to read "hello" back from it -- the handler at the other end simply send()s what it recv()s from a socket, doing blocking IO. If I break in apr_socket_recv() in 2.4.9 then I find that WSARecv() "hangs" for a little while and then returns SOCKET_ERROR, with apr_get_netos_error() returning 730060 ("A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond") -- this is WSAETIMEDOUT (10060). But using 2.2.26 (with the same perl and modperl) WSARecv() returns immediately, writing data into the buffer and setting the length as expected. Does anyone have any suggestion why this might be? Has something changed in this area in httpd-2.4.x that modperl needs to catch up with (particularly on Windows since this test works fine on Linux). (The sendrecv.c files themselves are the same between 2.2.26 and 2.4.9 in both win32 and unix flavours, but I'm wondering if something else has changed that I'm missing.)