##// END OF EJS Templates
configitems: register the 'badserver.closeafteraccept' config
marmoute -
r33188:8065b4ab default
parent child Browse files
Show More
@@ -33,10 +33,21 b' from __future__ import absolute_import'
33 33
34 34 import socket
35 35
36 from mercurial import(
37 registrar,
38 )
39
36 40 from mercurial.hgweb import (
37 41 server,
38 42 )
39 43
44 configtable = {}
45 configitem = registrar.configitem(configtable)
46
47 configitem('badserver', 'closeafteraccept',
48 default=False,
49 )
50
40 51 # We can't adjust __class__ on a socket instance. So we define a proxy type.
41 52 class socketproxy(object):
42 53 __slots__ = (
General Comments 0
You need to be logged in to leave comments. Login now