Changeset 19889

Show
Ignore:
Timestamp:
09/25/08 12:11:51 (5 years ago)
Author:
mattn
Message:

escape from end-less loop.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Test-TCP/trunk/t/01_simple.t

    r17780 r19889  
    2424        while (my $line = <$remote>) { 
    2525            print {$remote} $line; 
     26            return close $self->{sock} if $line =~ /quit/; 
    2627        } 
    2728    } 
     
    4950        my $res2 = <$sock>; 
    5051        is $res2, "bar\n"; 
     52        print {$sock} "quit\n"; 
    5153    }, 
    5254    server => sub {