Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Enable IPv6 support. However siege continues to use IPv4 as it does n…
Browse files Browse the repository at this point in the history
…ot support IPv6. Also switched ini setting to hdf for legacy compatibility.
  • Loading branch information
mofarrell committed Apr 7, 2017
1 parent 97b74e3 commit a73aaeb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base/HHVMDaemon.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ protected function getArguments(): Vector<string> {
if (count($this->options->hhvmExtraArguments) > 0) {
$args->addAll($this->options->hhvmExtraArguments);
}
$args->add('-dhhvm.server.thread_count='.$this->options->serverThreads);
$args->add('-vServer.ThreadCount='.$this->options->serverThreads);
if ($this->options->precompile) {
$bcRepo = $this->options->tempDir.'/hhvm.hhbc';
$args->add('-v');
Expand Down
3 changes: 2 additions & 1 deletion base/Siege.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ protected function getArguments(): Vector<string> {
$urls = file_get_contents($this->target->getURLsFile());
$urls =
str_replace('__HTTP_PORT__', (string) PerfSettings::HttpPort(), $urls);
$urls = str_replace('__HTTP_HOST__', gethostname(), $urls);
// Siege doesn't support ipv6
$urls = str_replace('__HTTP_HOST__', '127.0.0.1', $urls);
file_put_contents($urls_file, $urls);

$arguments = Vector {};
Expand Down
2 changes: 2 additions & 0 deletions conf/nginx/nginx.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ http {
#gzip on;

server {
listen [::]:__HTTP_PORT__ default_server;
listen __HTTP_PORT__ default_server;
access_log __NGINX_TEMP_DIR__/access.log main;
client_body_temp_path __NGINX_TEMP_DIR__/client_temp;
Expand Down Expand Up @@ -80,6 +81,7 @@ http {
}

server {
listen [::]:__HTTP_ADMIN_PORT__ default_server;
listen __HTTP_ADMIN_PORT__ default_server;
access_log __NGINX_TEMP_DIR__/admin-access.log main;
client_body_temp_path __NGINX_TEMP_DIR__/admin-client_temp;
Expand Down

0 comments on commit a73aaeb

Please sign in to comment.