<div dir="ltr"><div>Since (String new readStream next: 4) answers an empty string, so at least this seem consistent with the rest...<br></div>Some dialects have something like nextAvailable: 4 for this behavior and let next: 4 raise an exception, but not Squeak.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2014-10-07 21:41 GMT+02:00 Chris Muller <span dir="ltr">&lt;<a href="mailto:asqueaker@gmail.com" target="_blank">asqueaker@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Assuming its &#39;shouldSignal&#39; is true, if I say:<br>
<br>
  mySocketStream next: 4<br>
<br>
shouldn&#39;t I be guaranteed either 4 bytes of data, or an exception<br>
(Timeout or ConnectionClosed)?  But, never less than 4 bytes of data,<br>
right?<br>
<br>
Over the last few weeks I have been running very heavy networking and<br>
noticed several times &quot;SocketStream&gt;&gt;#next: 4&quot; returning me either an<br>
empty Array or nil.  I&#39;ve seen it more than once but can&#39;t reproduce<br>
it.<br>
<br>
Wouldn&#39;t that have to be a bug?<br>
<br>
</blockquote></div><br></div>