caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* ocamlnet servers fail to start on Mac OSX
@ 2007-04-02 17:29 Joel Reymont
  2007-04-02 18:08 ` [Caml-list] " Gerd Stolpmann
  0 siblings, 1 reply; 3+ messages in thread
From: Joel Reymont @ 2007-04-02 17:29 UTC (permalink / raw)
  To: Caml List

I'm tried to bring up examples/cgi/netcgi2-plex/netplex and got a  
bunch of messages like this, plus a runaway server continually  
forking itself.

[Mon Apr  2 17:30:51 2007] [netplex.controller] [crit] Exception in  
workload manager, function adjust: Unix.Unix_error(15, "socketpair", "")

I also got Unix.Unix_error(49, "", "") when trying to start the  
nethttpd server example. Error 49 is "Cannot bind to an address", I  
believe.

There's no problem running the examples on Linux.

	Thanks, Joel

--
http://wagerlabs.com/






^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] ocamlnet servers fail to start on Mac OSX
  2007-04-02 17:29 ocamlnet servers fail to start on Mac OSX Joel Reymont
@ 2007-04-02 18:08 ` Gerd Stolpmann
  2007-04-02 18:13   ` Joel Reymont
  0 siblings, 1 reply; 3+ messages in thread
From: Gerd Stolpmann @ 2007-04-02 18:08 UTC (permalink / raw)
  To: Joel Reymont; +Cc: Caml List

Am Montag, den 02.04.2007, 18:29 +0100 schrieb Joel Reymont:
> I'm tried to bring up examples/cgi/netcgi2-plex/netplex and got a  
> bunch of messages like this, plus a runaway server continually  
> forking itself.
> 
> [Mon Apr  2 17:30:51 2007] [netplex.controller] [crit] Exception in  
> workload manager, function adjust: Unix.Unix_error(15, "socketpair", "")

15 is EMFILE - too many file descriptors. Maybe you have to increase
some limit. Or this is a follow-up error.

> I also got Unix.Unix_error(49, "", "") when trying to start the  
> nethttpd server example. Error 49 is "Cannot bind to an address", I  
> believe.

No, 49 is EAFNOSUPPORT - address family not supported. I do not know
MacOS very much, but can it be some additional component needs to be
installed? Do you use an IPv4 or IPv6 address?

You can easily translate the numbers by:

# (Obj.magic 49:Unix.error);;
- : Unix.error = Unix.EAFNOSUPPORT

They are the same on all platforms.

> There's no problem running the examples on Linux.

Yeah, I'm primarily developing on Linux, but there is nothing
Linux-specific. From time to time I am testing on NetBSD or FreeBSD
which are quite similar to the MacOS kernel.

Gerd
-- 
------------------------------------------------------------
Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany 
gerd@gerd-stolpmann.de          http://www.gerd-stolpmann.de
Phone: +49-6151-153855                  Fax: +49-6151-997714
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] ocamlnet servers fail to start on Mac OSX
  2007-04-02 18:08 ` [Caml-list] " Gerd Stolpmann
@ 2007-04-02 18:13   ` Joel Reymont
  0 siblings, 0 replies; 3+ messages in thread
From: Joel Reymont @ 2007-04-02 18:13 UTC (permalink / raw)
  To: Gerd Stolpmann; +Cc: Caml List


On Apr 2, 2007, at 7:08 PM, Gerd Stolpmann wrote:

> No, 49 is EAFNOSUPPORT - address family not supported. I do not know
> MacOS very much, but can it be some additional component needs to be
> installed? Do you use an IPv4 or IPv6 address?

I disabled IPv6 in network preferences after getting this error but I  
still get it.

I use IPv4 addressing.

--
http://wagerlabs.com/






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-04-02 18:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-02 17:29 ocamlnet servers fail to start on Mac OSX Joel Reymont
2007-04-02 18:08 ` [Caml-list] " Gerd Stolpmann
2007-04-02 18:13   ` Joel Reymont

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).