Subject: | $! set to "Inappropriate ioctl for device" when using LWP::Simple getstore on files < 760 bytes |
Date: | Fri, 13 Jun 2014 09:17:21 -0500 |
To: | bug-libwww-perl [...] rt.cpan.org |
From: | "James C. Davis" <James.Davis [...] tamucc.edu> |
When attempting to retrieve any file < 760 bytes using getstore from
LWP::Simple, $! is set to "Inappropriate ioctl for device". The file is
retrieved successfully, however.
Reproduced on client systems:
CentOS 6.5, Perl 5.10.1, LWP::Simple 5.827
Ubuntu 13.10, Perl 5.14.2, LWP::Simple 6.00
pulling from server systems:
CentOS 6.5, Apache 2.2.15
CentOS 5.10, Apache 2.2.3
Example files:
760 byte file ($! not set): http://www.windwardweb.com/testfile1.txt
759 byte file ($! == "Inappropriate ioctl for device"):
http://www.windwardweb.com/testfile2.txt
--
James C. Davis
Senior Software Engineer
Harte Research Institute for Gulf of Mexico Studies
Texas A&M University-Corpus Christi