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

Comparing Coro/eg/myhttpd (file contents):
Revision 1.8 by root, Wed Apr 11 02:48:20 2007 UTC vs.
Revision 1.9 by root, Wed Apr 11 02:49:39 2007 UTC

62 schedule; 62 schedule;
63 } 63 }
64 } 64 }
65} 65}
66 66
67async { 67async { loop };
68
68 slog 1, "accepting connections"; 69slog 1, "accepting connections";
69 while () { 70while () {
70 $connections->down; 71 $connections->down;
71 push @fh, $port->accept; 72 push @fh, $port->accept;
72 #slog 3, "accepted @$connections ".scalar(@pool); 73 #slog 3, "accepted @$connections ".scalar(@pool);
73 if (@pool) { 74 if (@pool) {
74 (pop @pool)->ready; 75 (pop @pool)->ready;
75 } else { 76 } else {
76 async \&handler; 77 async \&handler;
77 }
78
79 } 78 }
80};
81 79
82cede; 80}
83loop;
84print "ende\n";#d#
85 81
86package conn; 82package conn;
87 83
88use Socket; 84use Socket;
89use HTTP::Date; 85use HTTP::Date;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines