ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/myhttpd/httpd.pl
(Generate patch)

Comparing Coro/myhttpd/httpd.pl (file contents):
Revision 1.40 by root, Mon Sep 3 00:06:06 2001 UTC vs.
Revision 1.41 by root, Mon Sep 10 22:16:20 2001 UTC

87 Listen => 50, 87 Listen => 50,
88 or die "unable to start server"; 88 or die "unable to start server";
89 89
90listen_on $http_port; 90listen_on $http_port;
91 91
92if ($SERVER_PORT2) {
92my $http_port = new Coro::Socket 93 my $http_port = new Coro::Socket
93 LocalAddr => $SERVER_HOST, 94 LocalAddr => $SERVER_HOST,
94 LocalPort => $SERVER_PORT2, 95 LocalPort => $SERVER_PORT2,
95 ReuseAddr => 1, 96 ReuseAddr => 1,
96 Listen => 50, 97 Listen => 50,
97 or die "unable to start server"; 98 or die "unable to start server";
98 99
99listen_on $http_port; 100 listen_on $http_port;
101}
100 102
101our $NOW; 103our $NOW;
102our $HTTP_NOW; 104our $HTTP_NOW;
103 105
104Event->timer(interval => 1, hard => 1, cb => sub { 106Event->timer(interval => 1, hard => 1, cb => sub {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines