in reply to Re^2: Is this a bug of perl threads?
in thread SOLVED: Is this a bug of perl threads?

I read the OP to mean that he was interupting a client with ^C and that was having the side-effect of causing the server to terminate.

Yes, that's what I mean.

Replies are listed 'Best First'.
Re^4: Is this a bug of perl threads?
by BrowserUk (Patriarch) on Mar 12, 2010 at 03:13 UTC

    I don't know enough about socket comms on *nix, but can't accept return without a connection? For example, with ECONNABORTED.

    As all your server threads are using (cloned copies of) the same server socket backed by the same physical resource, is it possible that if one client aborts its connection, that could cause all your threads to receive that error from the accept, causing their while loops to terminate?


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.