Skip to content

Commit

Permalink
SSL libs might trigger ENOTTY on read
Browse files Browse the repository at this point in the history
Mark Halpaap reports that testing for this ERRNO helps on Windows
when reading data via SSL.

He got "read failed: Inappropriate I/O control operation" errors.
  • Loading branch information
gisle committed Jul 27, 2013
1 parent 35452d0 commit a3bd083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/LWP/Protocol/http.pm
Expand Up @@ -410,7 +410,7 @@ sub request
{
$n = $socket->read_entity_body($buf, $size);
unless (defined $n) {
redo READ if $!{EINTR} || $!{EAGAIN};
redo READ if $!{EINTR} || $!{EAGAIN} || $!{ENOTTY};
die "read failed: $!";
}
redo READ if $n == -1;
Expand Down

0 comments on commit a3bd083

Please sign in to comment.