mpExperienceEpload: use apache

With HTTPSimpleServer, issue with lot of connections
This commit is contained in:
Quentin De Coninck 2016-06-10 13:52:27 +02:00
parent d7e3307348
commit 6367856ee0

View File

@ -42,7 +42,7 @@ class MpExperienceEpload(MpExperience):
MpExperienceEpload.SERVER_LOG ) MpExperienceEpload.SERVER_LOG )
def getHTTPServerCmd(self): def getHTTPServerCmd(self):
s = "python -m SimpleHTTPServer 8123 &>" + MpExperienceEpload.SERVER_LOG + " &" s = "/etc/init.d/apache2 restart &>" + MpExperienceEpload.SERVER_LOG + " &"
print(s) print(s)
return s return s
@ -63,14 +63,14 @@ class MpExperienceEpload(MpExperience):
" sed -i 's/@host@/" + self.mpConfig.getServerIP() + "/' " + \ " sed -i 's/@host@/" + self.mpConfig.getServerIP() + "/' " + \
"$f; done" "$f; done"
print(s) print(s)
return s return s
def getSubBackHostCmd(self): def getSubBackHostCmd(self):
s = "for f in `ls " + self.epload_test_dir + "/*`; do " + \ s = "for f in `ls " + self.epload_test_dir + "/*`; do " + \
" sed -i 's/" + self.mpConfig.getServerIP() + "/@host@/' " + \ " sed -i 's/" + self.mpConfig.getServerIP() + "/@host@/' " + \
"$f; done" "$f; done"
print(s) print(s)
return s return s
def clean(self): def clean(self):
MpExperience.clean(self) MpExperience.clean(self)