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

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.
"I'd rather go naked than blow up my ass"