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 mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 83A06BBAF for ; Wed, 16 Jun 2010 11:50:05 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUFAOs6GExQW+UMdWdsb2JhbACDHY8/jB0VAQwKCwcRIq4pkG6BJoMFbwSGZA X-IronPort-AV: E=Sophos;i="4.53,425,1272837600"; d="scan'208";a="64702880" Received: from lo.gmane.org ([80.91.229.12]) by mail4-smtp-sop.national.inria.fr with ESMTP; 16 Jun 2010 11:50:05 +0200 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OOpFz-0004Ek-Cu for caml-list@inria.fr; Wed, 16 Jun 2010 11:50:03 +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 11:50:03 +0200 Received: from sylvain by ks368928.kimsufi.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Jun 2010 11:50:03 +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 09:49:32 +0000 (UTC) Message-ID: References: <2EB36A07AAE8C44BBB1986425E7A22D0127E01BE32@atp-mbx1.in.nicta.com.au> <4C1894A2.3020805@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 ocaml:01 ocaml:01 nonblock:01 edwin:98 wrote:01 wrote:01 unix:01 corrected:01 native:03 bugs:03 nonblocking:04 manual:06 blocks:07 On 16-06-2010, Török Edwin wrote: > On 06/16/2010 10:32 AM, Paul Steckler wrote: > > You could set the socket to nonblocking mode (and check with 'select' > whether you can send), but according to the manual that doesn't work on > the native windows port of OCaml. > select works on Windows with latest version of OCaml. But there were a couple of bugs corrected in version 3.12 (esp. O_NONBLOCK + select). Next version will be safer for the use of select on Windows. Regards, Sylvain Le Gall