[Catalyst-commits] r6270 - / trunk/Catalyst-Runtime
trunk/Catalyst-Runtime/lib/Catalyst/Engine
zarquon at dev.catalyst.perl.org
zarquon at dev.catalyst.perl.org
Wed Apr 4 01:43:06 GMT 2007
Author: zarquon
Date: 2007-04-04 01:43:01 +0100 (Wed, 04 Apr 2007)
New Revision: 6270
Modified:
/
trunk/Catalyst-Runtime/
trunk/Catalyst-Runtime/Changes
trunk/Catalyst-Runtime/lib/Catalyst/Engine/HTTP.pm
Log:
r9763 at zaphod: kd | 2007-03-12 21:04:26 +1100
r9568 at zaphod (orig r6091): ash | 2007-02-22 04:43:57 +1100
MyAction attribute - thanks aherzog
r9569 at zaphod (orig r6092): ash | 2007-02-22 04:53:13 +1100
Add lets add the new file shall we
r9590 at zaphod (orig r6099): andyg | 2007-02-23 16:54:42 +1100
Improve performance by skipping body processing if we don't have Content-Length
r9591 at zaphod (orig r6100): andyg | 2007-02-23 16:56:21 +1100
Bump version in C::R
r9593 at zaphod (orig r6102): andyg | 2007-02-24 02:51:49 +1100
Revert ningu's body change, can't see a good reason for this, and it has no tests
r9597 at zaphod (orig r6106): andyg | 2007-02-24 07:12:09 +1100
Avoid a call to the slow str2time when setting HTTP Date header
r9600 at zaphod (orig r6109): andyg | 2007-02-24 10:38:46 +1100
Add a default body to redirect responses
r9602 at zaphod (orig r6111): andyg | 2007-02-24 16:34:24 +1100
Add tests for body on redirects
r9608 at zaphod (orig r6117): andyg | 2007-02-27 05:07:01 +1100
Patch from zamolxes: MyApp->model/view now looks at MyApp->config->{default_view/model}
r9609 at zaphod (orig r6118): andyg | 2007-02-27 05:14:35 +1100
Serve proper HTML for the redirect message
r9710 at zaphod (orig r6123): andyg | 2007-02-28 17:45:31 +1100
Improved performance and stability of built-in HTTP server. Ripped out keep-alive hack. Increased chunk size from 4K to 64K.
r9749 at zaphod (orig r6145): andyg | 2007-03-10 06:01:09 +1100
Re-enable keep-alive support in HTTP engine, with a 1-second delay
Property changes on:
___________________________________________________________________
Name: svk:merge
- 1b129c88-ebf4-0310-add9-f09427935aba:/local/catalyst:4278
1c72fc7c-9ce4-42af-bf25-3bfe470ff1e8:/local/Catalyst:9743
3b9770f9-e80c-0410-a7de-cd203d167417:/local/catalyst:3514
dd8ad9ea-0304-0410-a433-df5f223e7bc0:/local/Catalyst:6909
+ 1b129c88-ebf4-0310-add9-f09427935aba:/local/catalyst:4278
1c72fc7c-9ce4-42af-bf25-3bfe470ff1e8:/local/Catalyst:9763
3b9770f9-e80c-0410-a7de-cd203d167417:/local/catalyst:3514
dd8ad9ea-0304-0410-a433-df5f223e7bc0:/local/Catalyst:6909
Property changes on: trunk/Catalyst-Runtime
___________________________________________________________________
Name: svk:merge
- 1c72fc7c-9ce4-42af-bf25-3bfe470ff1e8:/local/Catalyst/trunk/Catalyst-Runtime:9763
4ad37cd2-5fec-0310-835f-b3785c72a374:/branches/Catalyst-ChildOf:4443
4ad37cd2-5fec-0310-835f-b3785c72a374:/branches/Catalyst-Runtime-jrockway:5857
4ad37cd2-5fec-0310-835f-b3785c72a374:/branches/Catalyst-component-setup:4320
4ad37cd2-5fec-0310-835f-b3785c72a374:/branches/Catalyst-docs:4325
4ad37cd2-5fec-0310-835f-b3785c72a374:/branches/current/Catalyst-Runtime:5142
d7608cd0-831c-0410-93c0-e5b306c3c028:/local/Catalyst/Catalyst-Runtime:8339
d7608cd0-831c-0410-93c0-e5b306c3c028:/local/Catalyst/Catalyst-Runtime-jrockway:8342
e56d974f-7718-0410-8b1c-b347a71765b2:/local/Catalyst-Runtime:6511
e56d974f-7718-0410-8b1c-b347a71765b2:/local/Catalyst-Runtime-current:10442
+ 1c72fc7c-9ce4-42af-bf25-3bfe470ff1e8:/local/Catalyst/trunk/Catalyst-Runtime:9763
4ad37cd2-5fec-0310-835f-b3785c72a374:/branches/Catalyst-ChildOf:4443
4ad37cd2-5fec-0310-835f-b3785c72a374:/branches/Catalyst-Runtime-jrockway:5857
4ad37cd2-5fec-0310-835f-b3785c72a374:/branches/Catalyst-component-setup:4320
4ad37cd2-5fec-0310-835f-b3785c72a374:/branches/Catalyst-docs:4325
4ad37cd2-5fec-0310-835f-b3785c72a374:/branches/current/Catalyst-Runtime:5142
4ad37cd2-5fec-0310-835f-b3785c72a374:/trunk/Catalyst-Runtime:6145
d7608cd0-831c-0410-93c0-e5b306c3c028:/local/Catalyst/Catalyst-Runtime:8339
d7608cd0-831c-0410-93c0-e5b306c3c028:/local/Catalyst/Catalyst-Runtime-jrockway:8342
e56d974f-7718-0410-8b1c-b347a71765b2:/local/Catalyst-Runtime:6511
e56d974f-7718-0410-8b1c-b347a71765b2:/local/Catalyst-Runtime-current:10442
Modified: trunk/Catalyst-Runtime/Changes
===================================================================
--- trunk/Catalyst-Runtime/Changes 2007-04-04 00:42:26 UTC (rev 6269)
+++ trunk/Catalyst-Runtime/Changes 2007-04-04 00:43:01 UTC (rev 6270)
@@ -14,8 +14,8 @@
5.7007 2007-03-13 14:18:00
- Performance and stability improvements to the built-in HTTP server.
- - Don't ignore file uploads if form contains a text field with the
- same name. (Carl Franks)
+ - Don't ignore file uploads if form contains a text field with the same name.
+ (Carl Franks)
- Support restart_delay of 0 (for use in the POE engine).
- Skip body processing if we don't have a Content-Length header.
Results in about a 9% performance increase when handling GET/HEAD
Modified: trunk/Catalyst-Runtime/lib/Catalyst/Engine/HTTP.pm
===================================================================
--- trunk/Catalyst-Runtime/lib/Catalyst/Engine/HTTP.pm 2007-04-04 00:42:26 UTC (rev 6269)
+++ trunk/Catalyst-Runtime/lib/Catalyst/Engine/HTTP.pm 2007-04-04 00:43:01 UTC (rev 6270)
@@ -346,8 +346,18 @@
$sel->add( \*STDIN );
REQUEST:
- while (1) {
- my ( $path, $query_string ) = split /\?/, $uri, 2;
+ # Initialize CGI environment
+ local %ENV = (
+ PATH_INFO => $path || '',
+ QUERY_STRING => $query_string || '',
+ REMOTE_ADDR => $sockdata->{peeraddr},
+ REMOTE_HOST => $sockdata->{peername},
+ REQUEST_METHOD => $method || '',
+ SERVER_NAME => $sockdata->{localname},
+ SERVER_PORT => $port,
+ SERVER_PROTOCOL => "HTTP/$protocol",
+ %copy_of_env,
+ );
# Initialize CGI environment
local %ENV = (
More information about the Catalyst-commits
mailing list