Commit Graph

11 Commits

Author SHA1 Message Date
wcrisman
ae1de97e91 Fixed compile errors by transferring more of the changes to this new branch. Previous upload doesn't compile. 2014-12-07 18:34:03 -08:00
wcrisman
b48e81bfe0 Added exception handling in the main loop for the web server to avoid the main loop thread getting killed off due to an unexpected/unhandled exception.
Moved code for JSON handling and metadata/metadata container into the Common project from the Foundation project.
2014-09-16 14:01:31 -07:00
wcrisman
fa572dae03 Modified ThreadService & Scheduler to allow the web server to pass a delegate service such that all webapps will use one service for each function (reduction in threading and debug complexity). 2014-08-30 15:43:30 -07:00
wcrisman
645a8c0a4b Attempted a different fix to the streamed content code so that it is blocking (previous fix failed for an unknown reason, and the code was getting complex unnecessarily). 2014-07-13 13:46:29 -07:00
wcrisman
2fc70088c1 Fixed newly introduced bug where by a blocking channel deadlocks because all content was read, but we attempted to read more anyway. 2014-07-13 12:54:10 -07:00
wcrisman
11b75d567f Fixed bugs in web server's handling of streamed content (logic was incorrectly handling non-blocking IO in the stream - interpreting it as a stream closed). Modified StreamedContent to use blocking IO instead of non-blocking since it was wasting CPU cycles (non-blocking IO done properly would require removing the write flag from the client socket and listening to the StreamedContent for the availablity of content before re-flagging the socket for writing). Using non-blocking IO here really isn't that useful since the content source should be trusted and timely, and multiple threads service clients (a few threads blocking for a few milliseconds is no big deal), and implementing it properly would significantly increase code complexity. 2014-07-13 12:19:30 -07:00
wcrisman
66487c3b25 Fixed bug in handling of sessions - some non-standard web apps (forwarding domains for example) in fact will have null sessions attached to their connections. Non-breaking change. 2014-07-11 15:39:28 -07:00
wcrisman
2b035e092c A second round of fixes to simplify the web application setup code and provide for a connection context accessible by the application when handling web requests. 2014-07-11 12:32:03 -07:00
wcrisman
07b8c2ff8d Fixed bugs from last commit. 2014-07-11 10:41:39 -07:00
wcrisman
d2027e13f9 Modified the web server to allow connection related data to be stored in the connection's context by the application. This modifies the contract (interfaces) between the framework and application code, requiring changes to the application (breaks backward compatibility). 2014-07-11 10:39:36 -07:00
wcrisman
b45e56b890 Initial commit from SVN. 2014-05-30 10:31:51 -07:00