ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/t/handle/03_http_req.t
(Generate patch)

Comparing AnyEvent/t/handle/03_http_req.t (file contents):
Revision 1.12 by root, Wed Dec 29 04:16:35 2010 UTC vs.
Revision 1.13 by root, Thu Apr 5 06:14:10 2012 UTC

20 20
21my $hdl; $hdl = 21my $hdl; $hdl =
22 AnyEvent::Handle->new ( 22 AnyEvent::Handle->new (
23 connect => ['www.google.com', 80], 23 connect => ['www.google.com', 80],
24 on_error => sub { 24 on_error => sub {
25 warn "socket error: $!"; 25 warn "handle error: $_[2]";
26 $cv->broadcast; 26 $cv->broadcast;
27 }, 27 },
28 on_eof => sub { 28 on_eof => sub {
29 my ($hdl) = @_; 29 my ($hdl) = @_;
30 30

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines