Page 1 of 1

Webserver

Posted: Sun Sep 30, 2007 4:25 pm
by Dave Zowasky
Hello All,

I have been doing a lot of work as of late using the webserver class
and have added a hook to the OnPost function so that I can manipulate
that data and react to it as it is coming in. I am scanning the boundry tags
to keep things together on uploads. For the most part it seems to
work fine untill I post larger files to it (35K).

It seems that the OnRead takes over at some point in the middle of the
process and the OnPost delivers about 8K of the data. I can see the rest of it coming in the log so it is getting there. It looks like I might need to come up with a way to get these two functions to mesh. Before I do all that work
I was wondering if any one had any suggestions.


Thanks

Posted: Mon Oct 01, 2007 4:38 am
by Antonio Linares
Dave,

We haven't done any further Class TWebServer development, waiting to have full multithread support on Harbour. As far as we know (based on Przemek comments) xHarbour multithreading does not work fine or has potential problems.

The idea is that the Class TWebServer code just attend only "one" client. But using multithreading can attend as many "one"s as required, simultaneously (and using the same code), as a webserver must do.

Posted: Mon Oct 01, 2007 5:27 pm
by Dave Zowasky
Antonio,

Thanks much for the details.