comparison lib/Test/Nginx/Stream.pm @ 1824:5d3aee48ed8e

Tests: style.
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 21 Mar 2023 02:57:20 +0300
parents 29d0961bc3f7
children 3629eda94c1b
comparison
equal deleted inserted replaced
1823:1e1d0f3874b0 1824:5d3aee48ed8e
84 $s = $self->{_socket}; 84 $s = $self->{_socket};
85 85
86 $s->blocking(0); 86 $s->blocking(0);
87 if (IO::Select->new($s)->can_read($extra{read_timeout} || 8)) { 87 if (IO::Select->new($s)->can_read($extra{read_timeout} || 8)) {
88 $s->sysread($buf, 1024); 88 $s->sysread($buf, 1024);
89 }; 89 }
90 90
91 log_in($buf); 91 log_in($buf);
92 return $buf; 92 return $buf;
93 } 93 }
94 94