I'm making some progress on my gcj-servlet-container-to-make-servlets-run-as-cgis stuff. Could someone suggest a name for it? Right now I called it gcjservlet, but that's kind of ugly and non-creative.
Today I changed stuff around so now all one has to do is link their servlet against my lib, specify, it's name with a -Dservlet= and it magicly turns into a standalone executable. No code modifications needed :)
I've never written a single servlet, other than the braindead ones for testing my servlet container. Such fun
I'll post a link to the code once I get some better than hello-world servlets going(or even try to run the cgis though a webserver!).
I think I finally got download timeouts to work. Basicly, I reverted to what was my first & most naive attempt at the problem + made it shorter. Turns out that as soon as I tried to use any serious threading stuff, gcj wouldn't support it on win32.
In any case, MichaelCrawford immediately stumbled upon another grave win32 bug(which we just added this week!). Bugs seem to like him.
I got rid of the silly xrc(wxwindows api) xml parser and replaced it with a libxml2 one. This didn't change our loading perfomance much. So then I replaced the wx hashmap with an stl map and suddenly our memory usage + cpu loading became 6x faster. Next our todo list is to revert to using stl strings & data structures.
btw, does anyone know of a good threading/socket library that is portable & lgpl/bsd/mit licensed? wxwindows(wxbase too!) seems to have more bugs than features. Ideally the library would be in c++, but we can deal with C ones too. So far we(me and s-a-t-a-n) haven't found anything that is usable. If this goes on, we'll have to revert to the custom coded Socket classes(our serversocket didn't work on win95..and had strange bugs on other platforms..silly mixing winsock + bsd sockets) and write some threading ones.