From: Eero Saynatkari Date: 2006-10-16T15:59:10+09:00 Subject: Re: Strange read behaviour on windows --TSQPSNmi3T91JED+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2006.10.16 15:41, Charles Lowe wrote: > This is my first post to the ruby mailing lists, so let me first thank=20 > all the people who's wonderful work I've made use of -- great stuff!. >=20 > I've been trying to upload some large files, using=20 > Net::HTTP::Put#body_stream=3D, but have ran into some problems. >=20 > Most of my initial testing was in cygwin, where most things "just work".= =20 > upon trying it in the mingw32 build, i got https errors due to openssl=20 > doing some non-block fcntls (IO#fcntl "not implemented on this=20 > platform"). >=20 > I switched to the i386-mswin32, but now I getting some more fundamental= =20 > problems, when doing file reads. I'm typically getting reads back under= =20 > the requested size, (not a problem), but this is generating premature=20 > EOF errors. If I just use File#read, I correctly get the entire file. Just on an off-chance, is your file open in binary mode? --TSQPSNmi3T91JED+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFMy0t7Nh7RM4TrhIRAmWUAJ9BSIFBuSUv39dXYdLkMldO/Oq9LwCgrLE2 iRThd+D1DCIiPvjaIj1NpK4= =ttqH -----END PGP SIGNATURE----- --TSQPSNmi3T91JED+--