Skip Menu |
 

This queue is for tickets about the libwww-perl CPAN distribution.

Report information
The Basics
Id: 96429
Status: resolved
Priority: 0/
Queue: libwww-perl

People
Owner: Nobody in particular
Requestors: James.Davis [...] tamucc.edu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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>
Download (untitled) / with headers
text/plain 689b
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
On 2014-06-13 10:17:38, James.Davis@tamucc.edu wrote: Show quoted text
> 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 >
I cannot reproduce this on a Linux Mint 13 system with perl 5.18.4 and LWP 6.08, and on a FreeBSD 9.2 system with the same versions: $ pistachio-perl -MLWP::Simple=getstore -e 'getstore shift, "/tmp/test"; warn $!' http://www.windwardweb.com/testfile1.txt Warning: something's wrong at -e line 1. $ pistachio-perl -MLWP::Simple=getstore -e 'getstore shift, "/tmp/test"; warn $!' http://www.windwardweb.com/testfile2.txt Warning: something's wrong at -e line 1.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.