From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 44DB8BBAF for ; Wed, 16 Jun 2010 09:32:34 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnUCAA0bGEzLj65GlGdsb2JhbACeeRUBAQEBCQsICREFFwa/ZIUaBA X-IronPort-AV: E=Sophos;i="4.53,425,1272837600"; d="scan'208";a="52480806" Received: from atp-es2.it.nicta.com.au ([203.143.174.70]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/AES256-SHA; 16 Jun 2010 09:32:32 +0200 Received: from atp-mbx1.it.nicta.com.au ([221.199.216.123] helo=atp-mbx1.in.nicta.com.au) by atp-es2.it.nicta.com.au with esmtp (Exim 4.69) (envelope-from ) id 1OOn6q-0000Mq-Pl for caml-list@yquem.inria.fr; Wed, 16 Jun 2010 17:32:29 +1000 Received: from atp-mbx1.in.nicta.com.au ([221.199.216.123]) by atp-mbx1.in.nicta.com.au ([221.199.216.123]) with mapi; Wed, 16 Jun 2010 17:32:28 +1000 From: Paul Steckler To: "caml-list@yquem.inria.fr" Date: Wed, 16 Jun 2010 17:32:27 +1000 Thread-Topic: Unix.send blocks Thread-Index: AQHLDSYS30znTkGXPEmSsVYGGMSBjg== Message-ID: <2EB36A07AAE8C44BBB1986425E7A22D0127E01BE32@atp-mbx1.in.nicta.com.au> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US x-tm-as-product-ver: SMEX-8.0.0.4125-6.000.1038-17448.001 x-tm-as-result: No--35.595300-0.000000-31 x-tm-as-user-approved-sender: Yes x-tm-as-user-blocked-sender: No Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SA-Exim-Connect-IP: 221.199.216.123 X-SA-Exim-Mail-From: Paul.Steckler@nicta.com.au X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on atp-es2.it.nicta.com.au X-Spam-Level: Subject: Unix.send blocks X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:20:07 +0000) X-SA-Exim-Scanned: Yes (on atp-es2.it.nicta.com.au) X-Spam: no; 0.00; steckler:01 steckler:01 ocaml:01 ocamlopt:01 mingw:01 ocaml:01 buffer:01 unix:01 unix:01 data:02 reproduce:03 pattern:04 blocking:04 compiled:04 blocks:07 I've written a wee Web server in OCaml that's compiled using the ocamlopt f= rom the Fedora MinGW distribution of ocaml. I'm running the server in Windows 7. Sometimes after receiving several requests, the Unix.send call that sends a= response back to a Web client just blocks. The send buffer is pretty large (64k), a= nd the data to be sent is always much less than that. While it's easy to reproduce the error (a certain pattern of requests from = the browser), I can't tell what particular conditions cause the blocking behavior. Any help appreciated. -- Paul -- Paul Steckler National ICT Australia paul DOT steckler AT nicta.com.au The information in this e-mail may be confidential and subject to legal pro= fessional privilege and/or copyright. National ICT Australia Limited accept= s no liability for any damage caused by this email or its attachments.