Re: scalable server
Anne Ogborn <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
>To make sure I've understood the lesson you learned from this experience: HTTP keep alive kept open too many connections which caused an error message about too many open files. Is that right? Michael - I'm trying to understand it myself, but yes, that's how I interpret the data. The default keepalive is 5 seconds. I made it 1. I believe that reduces the number of open sockets. I also set timeout(1) Default, per the docs, is infinity. I believe that makes the server close connections instead of just building up a backlog of open sockets when it gets overloaded. I suspect but don't know that this is the primary issue.