[issue1917] hgwebdir.fcgi dose not work under windows platform
Shuai Wang
bugs at mercurial.selenic.com
Mon Nov 23 07:34:58 UTC 2009
New submission from Shuai Wang <sharkke.w at gmail.com>:
Some changes have been made to that file according to django's fastcgi module.
changeset: 9910:df4808002864
tag: tip
user: Sharkke.W <sharkke.w at gmail.com>
date: Mon Nov 23 15:22:10 2009 +0800
files: contrib/hgwebdir.fcgi
description:
fix: hgwebdir.fcgi does not work under windows platform.
diff -r 369592fdc2e4 -r df4808002864 contrib/hgwebdir.fcgi
--- a/contrib/hgwebdir.fcgi Sun Nov 22 15:36:22 2009 -0600
+++ b/contrib/hgwebdir.fcgi Mon Nov 23 15:22:10 2009 +0800
@@ -59,4 +59,16 @@
# Alternatively you can pass a list of ('virtual/path', '/real/path') tuples
# or use a dictionary with entries like 'virtual/path': '/real/path'
-WSGIServer(hgwebdir('hgweb.config')).run()
+# the fork method in flup does not work under windows platform,
+# so use threads instead, edit this correspondingly
+import sys
+if sys.platform = "win32":
+ wsgi_opts = {
+ 'maxSpare': 5,
+ 'minSpare': 2,
+ 'maxThreads': 50,
+ 'bindAddress': ('127.0.0.1', 8091),
+ }
+ WSGIServer(hgwebdir('hgweb.config'), **wsgi_opts).run()
+else:
+ WSGIServer(hgwebdir('hgweb.config')).run()
----------
files: hgwebdir.fcgi-fix.patch
messages: 11032
nosy: sharkke
priority: feature
status: unread
title: hgwebdir.fcgi dose not work under windows platform
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue1917>
____________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hgwebdir.fcgi-fix.patch
Type: application/octet-stream
Size: 1075 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20091123/6986b492/attachment.obj>
More information about the Mercurial-devel
mailing list