From: Olivier Andrieu <oandrieu@nerim.net>
To: jtbryant@valdosta.edu
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Mysterious bug
Date: Sun, 11 Dec 2005 12:11:56 +0100 [thread overview]
Message-ID: <17308.2428.209758.492757@karryall.dnsalias.org> (raw)
In-Reply-To: <1134271835.1763.8.camel@localhost.localdomain>
Jonathan Bryant [Saturday 10 December 2005] :
>
> Everybody,
>
> I'm working on my client/server library and I've run into a rather
> elusive bug. It may be elusive because my skills with GDB are rather
> shoddy (usually I'm pretty good at achieving my goal of not needing to
> use it).
>
> The attachment is my code for the library (as well as a small build
> script and tester). It's documented in the Acceptor module, but when I
> run the server under high loads (10 thread pinging it 1,000,000 times or
> so each), one of three things happens:
> 1. Nothing (works like it should)
> 2. Unix.accept raises an Unix.Unix_error(12, "accept", "") at some
> random time (sometimes, I believe, after all of the connections have
> been made, but I feel very wrong in thinking this)
12 is EINVAL, and the accept(2) manpage says:
EINVAL Socket is not listening for connections.
So I guess your code has some ordering issues, you accept()
either before you listen() or after you shutdown().
--
Olivier
prev parent reply other threads:[~2005-12-11 11:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-11 3:30 Jonathan Bryant
2005-12-11 4:32 ` [Caml-list] " Brian Hurt
2005-12-11 11:16 ` Christophe TROESTLER
2005-12-11 14:33 ` Brian Hurt
2005-12-11 15:15 ` Christophe TROESTLER
2005-12-11 11:11 ` Olivier Andrieu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17308.2428.209758.492757@karryall.dnsalias.org \
--to=oandrieu@nerim.net \
--cc=caml-list@yquem.inria.fr \
--cc=jtbryant@valdosta.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox