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 87650BBAF for ; Wed, 16 Jun 2010 10:55:49 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArQFAPcuGExQW+UMdWdsb2JhbACSXIwdFQEMCgsHESK/O4UaBIZk X-IronPort-AV: E=Sophos;i="4.53,425,1272837600"; d="scan'208";a="52486763" Received: from lo.gmane.org ([80.91.229.12]) by mail3-smtp-sop.national.inria.fr with ESMTP; 16 Jun 2010 10:55:25 +0200 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OOoP6-00047Y-CL for caml-list@inria.fr; Wed, 16 Jun 2010 10:55:24 +0200 Received: from ks368928.kimsufi.com ([94.23.39.26]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Jun 2010 10:55:24 +0200 Received: from sylvain by ks368928.kimsufi.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Jun 2010 10:55:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr connect(): No such file or directory From: Sylvain Le Gall Subject: Re: Unix.send blocks Date: Wed, 16 Jun 2010 08:55:03 +0000 (UTC) Message-ID: References: <2EB36A07AAE8C44BBB1986425E7A22D0127E01BE32@atp-mbx1.in.nicta.com.au> X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ks368928.kimsufi.com User-Agent: slrn/pre1.0.0-11 (Linux) X-Spam: no; 0.00; le-gall:01 steckler:01 steckler:01 ocaml:01 ocamlopt:01 mingw:01 ocaml:01 buffer:01 wrote:01 unix:01 unix:01 data:02 reproduce:03 pattern:04 pattern:04 On 16-06-2010, Paul Steckler wrote: > I've written a wee Web server in OCaml that's compiled using the ocamlopt from 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), and 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. > I don't have a clue but maybe you can tell us more about "the pattern of requests from the browser". Regards, Sylvain Le Gall