This repository has been archived by the owner on Nov 19, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[xsp] Improved single app mode shutdown sequence.
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.
- Loading branch information
Showing
2 changed files
with
63 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters