[Caml-list] Re: Unix.send blocks

2010-06-16 Thread Paul Steckler
I wrote: > 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. I've found a solution. When receiving data from the browser,

Re: [Caml-list] OCaml 3.12.0+beta1

2010-06-16 Thread Török Edwin
On 06/16/2010 04:07 PM, Damien Doligez wrote: > Dear OCaml users, > > We have the pleasure of celebrating Bloomsday by announcing the release of > OCaml version 3.12.0+beta1. > > This is a beta release, available as source only and intended for power > users to test new features and report bugs (

Re: [Caml-list] OCaml 3.12.0+beta1

2010-06-16 Thread Martin Jambon
Yoann Padioleau wrote: > On Jun 16, 2010, at 6:07 AM, Damien Doligez wrote: > >> Dear OCaml users, > > [...] > >> - Record patterns of the form { lbl = pat; _ } to mark that not all >> labels are listed, purposefully. (See new warning below.) > > This is cool. Thank you! Does it have to be '_

Re: [Caml-list] OCaml 3.12.0+beta1

2010-06-16 Thread Yoann Padioleau
On Jun 16, 2010, at 6:07 AM, Damien Doligez wrote: > > Dear OCaml users, [...] > - Record patterns of the form { lbl = pat; _ } to mark that not all > labels are listed, purposefully. (See new warning below.) This is cool. Thank you! Does it have to be '_' only ? Can we write also { lbl =

[Caml-list] OCaml 3.12.0+beta1

2010-06-16 Thread Damien Doligez
Dear OCaml users, We have the pleasure of celebrating Bloomsday by announcing the release of OCaml version 3.12.0+beta1. This is a beta release, available as source only and intended for power users to test new features and report bugs (if any). This release brings a lot of new features, see the

RE: [Caml-list] Unix.send blocks

2010-06-16 Thread David Allsopp
k/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

[Caml-list] Re: Unix.send blocks

2010-06-16 Thread Sylvain Le Gall
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 l

[Caml-list] Re: Unix.send blocks

2010-06-16 Thread Sylvain Le Gall
On 16-06-2010, Christoph Bauer wrote: > >> 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 guess you are using Unix.select. There is (was) a bug

RE: [Caml-list] Re: Unix.send blocks

2010-06-16 Thread Christoph Bauer
> 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 guess you are using Unix.select. There is (was) a bug in the windows select implementation. It had pro

Re: [Caml-list] Unix.send blocks

2010-06-16 Thread Török Edwin
On 06/16/2010 10:32 AM, 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 > respon

[Caml-list] Re: Unix.send blocks

2010-06-16 Thread Sylvain Le Gall
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

[Caml-list] Cooperation Suggestion

2010-06-16 Thread Kenneth Page
Hi,   Let me take the opportunity to introduce myself. My name is Kenneth Page and I am the admin of http://www.online-bg.net/ , nice to meet you.   I just visited http://caml.inria.fr/ and I found it very compatible with my current ongoing projects. I have a selection of quality webs

[Caml-list] Unix.send blocks

2010-06-16 Thread Paul Steckler
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