Help for this page

Select Code to Download


  1. or download this
    $|=1;
    
    # and perhaps after your accept() call:
    
    $new_sock->autoflush;
    
  2. or download this
    my $res = $sock->fcntl(F_GETFL, 0);
    $sock->fcntl(F_SETFL, $res | O_NONBLOCK);