##// END OF EJS Templates
test-http-proxy: redirect proxy stdout to /dev/null...
Matt Harbison -
r32916:88c1d13b default
parent child Browse files
Show More
@@ -8,7 +8,7 b''
8 $ hg serve --config server.uncompressed=True -p $HGPORT -d --pid-file=hg.pid
8 $ hg serve --config server.uncompressed=True -p $HGPORT -d --pid-file=hg.pid
9 $ cat hg.pid >> $DAEMON_PIDS
9 $ cat hg.pid >> $DAEMON_PIDS
10 $ cd ..
10 $ cd ..
11 $ tinyproxy.py $HGPORT1 localhost >proxy.log 2>&1 </dev/null &
11 $ tinyproxy.py $HGPORT1 localhost 2>proxy.log >/dev/null </dev/null &
12 $ while [ ! -f proxy.pid ]; do sleep 0; done
12 $ while [ ! -f proxy.pid ]; do sleep 0; done
13 $ cat proxy.pid >> $DAEMON_PIDS
13 $ cat proxy.pid >> $DAEMON_PIDS
14
14
@@ -54,6 +54,7 b' class ProxyHandler (httpserver.basehttpr'
54 self.requestline, str(code), str(size),
54 self.requestline, str(code), str(size),
55 ''.join([' %s:%s' % h for h in sorted(xheaders)]))
55 ''.join([' %s:%s' % h for h in sorted(xheaders)]))
56 # Flush for Windows, so output isn't lost on TerminateProcess()
56 # Flush for Windows, so output isn't lost on TerminateProcess()
57 sys.stdout.flush()
57 sys.stderr.flush()
58 sys.stderr.flush()
58
59
59 def _connect_to(self, netloc, soc):
60 def _connect_to(self, netloc, soc):
General Comments 0
You need to be logged in to leave comments. Login now