43 |
cookie_session => 'sid', |
cookie_session => 'sid', |
44 |
callback => \&main, |
callback => \&main, |
45 |
debug_level => 2, |
debug_level => 2, |
46 |
staticp => sub { $_[0]->url =~ m/^(static|var).*\.(jpg|jpeg|gif|png|css|ico|js|html?|xml|json|ya?ml)(\?.*)?$/ }, |
staticp => sub { |
47 |
|
$_[0]->url =~ m{^/(static|var).*\.(jpg|jpeg|gif|png|css|ico|js|html?|xml|json|ya?ml)(\?.*)?$} |
48 |
|
}, |
49 |
); |
); |
50 |
$Module::Reload::Debug = 1; # auto if debug_level > 1 |
$Module::Reload::Debug = 1; # auto if debug_level > 1 |
51 |
Frey::ClassLoader->new->load_all_classes(); |
Frey::ClassLoader->new->load_all_classes(); |
180 |
send_message($req); |
send_message($req); |
181 |
} |
} |
182 |
|
|
183 |
|
if ($req->conn ) { |
184 |
|
$req->conn->close; |
185 |
|
warn "## close connection: $@"; |
186 |
|
} |
187 |
} |
} |
188 |
|
|
189 |
# Here we accept a connection to the browser, and keep it open. Meanwhile we |
# Here we accept a connection to the browser, and keep it open. Meanwhile we |