When we receive a request and have no application to handle it, mark it as not found.
This reverts commit 9455071.
Avoid problems with Substring when parsing and converting headers. This fixes bug #626131.
Ignore exception closing socket and let the rest of the cleanup take place. Patch from Tiaan Geldenhuys.
When XSP/mod-mono-server are operating in the single app mode, the application runs in the same AppDomain what the Server instance. This requires special attention to handling of the AppDomain's unload. This commit adds code which waits for the AppDomain unload process to complete before recreating the domain. Without this code it may happen that the main listening socket will not be destroyed in the "old" domain before the "new" domain attempts to bind its own listening socket to the same port (which leads to bind failure and exit from the process). The code is not very elegant but it is portable.
…correct physical root set When creating the ApplicationServer instance from a new domain, make sure that IApplicationHost instance for the current application is associated with the correct ApplicationServer instance, or otherwise MapPath for applications served from non-root virtual paths will fail to map paths properly (physical root will remain at '/')
…ata.SqliteClient is deprecated.
There exist 3rd party application which use xsp.exe classes for hosting. Those classes used to be part of Mono.WebServer.dll, which was a design mistake, and were moved out of it to xsp.exe back in March 2010. This commit puts them back in the dll but marks them as [Obsolete]. The classes will be removed from the dll when Mono 3.0 is released.
This reverts commit ec0346d.
This is nedeed by monotools-server.
APIs that are already in use were moved to xsp*.exe
Or otherwise its GetHashCode () will return -1 which will cause the unregistration to fail
Or otherwise we might leak a socket in XSPWorker.Close.
Added locks around 'connections' since it can be accessed/modified by multiple threads at the same time. Fixes bug #633474.
…tiple apps should use physical server root. When xsp is configured to serve two virtual applications and one of them attempts to map a file from the other, the returned physical path must be composed using the XSP's physical root as the base path - not the current application's physical path. This is consistent with the way IIS works. To achieve this, the commit adds a new PhysicalRoot property to the ApplicationServer class. The property is used in MonoWorkerRequest.MapPath ().
…tiple apps should use physical server root." This reverts commit 7748f11 because it breaks some apps. More testing is needed.
…tor as well." This reverts commit 05263ba because the changes break some apps. More testing is needed.
…ps should use physical server root. When xsp is configured to serve two virtual applications and one of them attempts to map a file from the other, the returned physical path must be composed using the XSP's physical root as the base path - not the current application's physical path. This is consistent with the way IIS works. To achieve this, the commit adds a new PhysicalRoot property to the ApplicationServer class. The property is used in MonoWorkerRequest.MapPath ().
If an error occurs during early phase of mod-mono-server startup (including exceptions while parsing config files) make sure the error and/or exception is output to standard error. The reason for this is that mod_mono by default redirects stdout to /dev/null (it doesn't do that if the MonoDebug directive is set to 'true'). Also added an internal class to safely retrieve AppSettings from the config file.
… won't be included svn path=/trunk/xsp/; revision=158983
svn path=/trunk/xsp/; revision=158982
* ModMonoWorkerRequest.cs: avoid double handle close when sending response from a file in certain cases. 2010-06-02 Marek Habersack <firstname.lastname@example.org> * XSPWorkerRequest.cs: avoid double handle close when sending response from a file in certain cases. svn path=/trunk/xsp/; revision=158326
* ApplicationServer.cs: OnAccept sends BeginAccept exceptions back to the client and then re-throws the exception. Fixes bug #609787 svn path=/trunk/xsp/; revision=158119
* ModMonoRequest.cs: SendResponseFromMemory must advance the pointer when not on Linux. svn path=/trunk/xsp/; revision=155319