in reply to Can you tell me why?
See also Randal Schwartz's Web Techniques columns, particularly 23 and 24. He builds a fork()ing mini web server there.
If you're determined to keep your existing code, I would look at your while loop. There seems to be no way to exit it, and perhaps the socket is timing out.
|
|---|