Subject: | Example code broken |
examples/blocking.pl reads:
...
while (my $request = $scgi->accept) {
$request->read_env;
$request->socket->print("Content-Type: text/plain\n\n");
$request->socket->print(Dumper $request->env);
$request->close;
}
...
examples/non_blocking.pl reads:
...
event_new(
$request->socket,
EV_READ|EVLOOP_ONCE,
...
There's no 'socket' method in SCGI::Request
s/socket/connection/g