[totem] browser-plugin: Add speed limit support to httpd
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] browser-plugin: Add speed limit support to httpd
- Date: Wed, 18 Jul 2012 17:07:38 +0000 (UTC)
commit 9f8072d568c48257308c746443f2b525b30a6077
Author: Bastien Nocera <hadess hadess net>
Date: Wed Jul 18 10:54:01 2012 +0100
browser-plugin: Add speed limit support to httpd
For testing of download buffering
browser-plugin/tests/launch-web-server.sh | 19 ++++++++++++++-----
1 files changed, 14 insertions(+), 5 deletions(-)
---
diff --git a/browser-plugin/tests/launch-web-server.sh b/browser-plugin/tests/launch-web-server.sh
index 5cf8edd..12a4494 100755
--- a/browser-plugin/tests/launch-web-server.sh
+++ b/browser-plugin/tests/launch-web-server.sh
@@ -85,6 +85,7 @@ LoadModule dir_module /etc/httpd/modules/mod_dir.so
LoadModule autoindex_module /etc/httpd/modules/mod_autoindex.so
LoadModule rewrite_module /etc/httpd/modules/mod_rewrite.so
LoadModule log_config_module /etc/httpd/modules/mod_log_config.so
+LoadModule bw_module /etc/httpd/modules/mod_bw.so
ServerRoot "$ROOTDIR"
PidFile pid
@@ -95,15 +96,23 @@ ErrorLog log
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog access_log combined
TypesConfig /etc/mime.types
-DocumentRoot "$DOCDIR"
-<Directory "$DOCDIR">
-AllowOverride All
-</Directory>
+
+<VirtualHost *:$PORT>
+ DocumentRoot "$DOCDIR"
+ BandWidthModule On
+ ForceBandWidthModule On
+ # Max 400 kB/s for files bigger than 10 megs
+ LargeFileLimit * 10000 400000
+
+ <Directory "$DOCDIR">
+ AllowOverride All
+ </Directory>
+</VirtualHost>
StartServers 1
MinSpareServers 1
MaxSpareServers 1
-MaxClients 3
+MaxClients 10
EOF
popd > /dev/null
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]