But I am also currently writing version 2 of an app that utilizes a general-purpose application server that I wrote (took about seven months), at first. It's been shipping for a couple of years. The server does great, but is unwieldy. I suggest against writing general-purpose servers.
The new version uses a newer, more focused, server that is a lot lighter.