-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spurious(?) "Deep recursion" message from Twiggy::Server+Plack::Middleware::Static #49
Comments
Nevermind, I actually read #1 and this issue is not related to AIO as far as I know :) |
I'm observing this issue still with the latest version of Twiggy in my web project
The System where the Web Server runs on is a Installed Versions:
|
Seeing the Warning in the context of the Server Logic at
When writing high performant applications that handle big workloads I found that reducing read and write events with defining bigger chunk sizes produces the best performance. |
As seen in the synopsis of the #----------------------------------------------------------------------------
#URL Mapping
my $web = builder {
#Graphic Elements Mapping
enable "Static", path => qr#^/(images|css|js|html)#, root => $webroot;
#Configure Logging
enable "Plack::Middleware::AccessLog::Timed"
, format => '%{X-FORWARDED-PROTO}i:%V (%h,%{X-FORWARDED-FOR}i) %{%F:%T}t [%D] '
. '"Mime:%{Content-Type}o" "%r" %>s %b "%{Referer}i" "%{User-agent}i"';
#Any other Content
$app;
};
#----------------------------------------------------------------------------
#Create Service Instance
print "args dmp:\n", dump @ARGV ;
print "\n";
print "ENV dmp:\n", dump %ENV ;
print "\n";
my $host = '0.0.0.0';
my $port = $ENV{'PORT'} || 3000;
my $server = Twiggy::Server->new(
host => $host,
port => $port,
read_chunk_size => 32768,
);
#Start Service
$server->run($web); This does work in the sense that the server is executable and responsive.
But now it does not log anymore the static resource requests.
Now when setting the value
So, the Error does not happen anymore and also the site rendering is speeded up very much which does confirm the earlier conclusion but the Server Logs are incomplete now which makes the solution not so nice. |
According to the Error Message and the relationship with the
|
Apologies if this is a known issue. This is on Ubuntu Linux 15.04:
Create a "big" file:
Start Twiggy::Server with Plack::Middleware::Static:
In a new terminal, hit the server with curl:
In original terminal there is this warning:
I say "spurious" in the title because the file seems to have downloaded OK according to
wc
above... I guess the deep recursion isn't actually a problem somehow?Thanks!
The text was updated successfully, but these errors were encountered: