On Mon, Aug 26, 2013 at 5:03 AM, Eric Iverson <[email protected]>wrote:
> > Not sure why you working with duplicate socket. I would think the > normal J socket library would give you enough to get things done. > I'm duplicating the socket so that I can mimic a threaded server. I have a proof of concept here: https://github.com/joebo/j-fork-server. The code is messy. One large hurdle for building a web server is how to prevent a request from locking out all other requests. Common approaches are threading and forking. Forking isn't really an option on windows. Since the jconsole process is lightweight (around 5mb), I think it would be OK to fork. It will need logic to prevent a DDOS (limit the number of forked processes for example). Thanks for the help on working through the Win32 API calling convention. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
