prewikka/master: Workaround possible mimetypes recursion error
[email protected] Mon, 14 Dec 2009 16:35:11 +0100 (CET)
| Newsgroups | gmane.comp.security.ids.prelude.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit c609a24349ab9a1a125f0118489d373922bd66cb Author: Yoann Vandoorselaere <[email protected]> Date: Mon Dec 14 16:35:42 2009 +0100 Workaround possible mimetypes recursion error This error seems to arise with recent Python version when calling the mimetypes detection function from different threads. The known workaround involve calling mimetypes.init() before threads creation. ======================================== scripts/prewikka-httpd | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) ======================================== diff --git a/scripts/prewikka-httpd b/scripts/prewikka-httpd index d7b0ac2..3f8ce0b 100644 --- a/scripts/prewikka-httpd +++ b/scripts/prewikka-httpd @@ -158,6 +158,7 @@ if __name__ == "__main__": elif opt in ("-c", "--config"): config = arg + mimetypes.init() core = Core.get_core_from_config(config) server = PrewikkaServer(core, (addr, port), PrewikkaRequestHandler) _______________________________________________ Prelude-cvslog site list [email protected] http://lists.prelude-ids.org/mailman/listinfo/prelude-cvslog