develooper Front page | perl.libwww | Postings from August 2001

Re: [PATCH] Resolve "Short Write"

Thread Previous | Thread Next
From:
Norton Allen
Date:
August 7, 2001 11:08
Subject:
Re: [PATCH] Resolve "Short Write"
Message ID:
200108071817.OAA05372@bottesini.harvard.edu
Gisle Aas wrote:
> 
> Norton Allen <allen@huarp.harvard.edu> writes:
> 
> > The "short write" error reported by http.pm is a shorthand for
> > "Your operating system has exploited a perfectly legal feature
> > that apparently has not been encountered in other operating
> > systems to date."
> 
> It is also shorthand for "Gisle is lazy" :-)
> 
> > That feature is the possibility that syswrite
> > might return having only written part of the requested record,
> > and I have encountered it under QNX4 for file sizes in excess
> > of 10K bytes. This patch does the obvious loop to write out the
> > rest.
> 
> Thanks.  There are two other places in http.pm that dies with "short
> write".  Do you care enough to patch them all or did you decide that
> the others where less likely to happen?

  I deemed them more unlikely, since I believe they are dealing
  with header stuff, which is likely to be much shorter than the
  content, but clearly I'm exhibiting laziness in choosing to not
  patch them as well. If you like, I can make it right
  throughout.
  
   -Norton
   

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About