reading from socket gives 0 bytes
Andreas Raab
Andreas.Raab at gmx.de
Sun Apr 14 20:39:19 UTC 2002
Kamil,
This behavior is normal in the windows VM in order to prevent a
particularly nasty problem.
Cheers,
- Andreas
> -----Original Message-----
> From: squeak-dev-admin at lists.squeakfoundation.org
> [mailto:squeak-dev-admin at lists.squeakfoundation.org] On
> Behalf Of Kamil Kukura
> Sent: Sunday, April 14, 2002 9:57 PM
> To: squeak-dev at lists.squeakfoundation.org
> Subject: reading from socket gives 0 bytes
>
>
> I work with PostgreSQL and here is the piece code of
> PGConnection>>next
>
> (socket waitForDataUntil: Socket standardDeadline)
> ifFalse: [self error: 'timed out getting data'].
> lastReadIndex _ socket receiveDataInto: readBuffer
>
> It happens that #waitForDataUntil: returns true so there
> should be some
> data ready but lastReadIndex gives 0. I use Windows 2000, Squeak 3.0
> with VM version 3.2 (release build 1). To me it's quite
> strange behavior
> perhaps in Windows' VM only. Or is it normal?
>
> --
> Kamil
>
>
>
>
>
>
More information about the Squeak-dev
mailing list
|