[Squeak 3.9] Socket waitForData won't wake up when data become available

Jon Hylands jon at huv.com
Tue Jun 12 00:26:07 UTC 2007


On Tue, 12 Jun 2007 01:00:45 +0200, Niko Schwarz <niko.schwarz at gmx.net>
wrote:

> Now, this is relatively annoying to me. Of course I could restructure  
> the code to only read the socket when there are most probably data to  
> be received; but that would be less reliable and certainly uglier  
> than my reading process.

Try setting the buffered flag in the socket stream to false.

Later,
Jon

--------------------------------------------------------------
   Jon Hylands      Jon at huv.com      http://www.huv.com/jon

  Project: Micro Raptor (Small Biped Velociraptor Robot)
           http://www.huv.com/blog



More information about the Squeak-dev mailing list