Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
ocamlnet and kernel poll
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-09-11 (12:51)
From: Sylvain Le Gall <sylvain@l...>
Subject: Re: ocamlnet and kernel poll
On 11-09-2008, Joel Reymont <> wrote:
> Suppose I want to build a server that runs on top of ocamlnet and  
> handles 10k+ connections.
> ocamlnet seems to use select exclusively.
> Any suggestions on how to add kernel poll? Is this possible even?

I am not sure about what kind of server you want to create, but for this
high number of connection, I think "fork"ing a little bit will help you
to have more connection and is to my mind more secure et al.

Handling more than 10k connection in a single executable is not a
"general" good idea... But maybe in your case, you have no choice.

Sylvain Le Gall