[squeak-dev] Re: [BUG][FIX][FIX], was: (Re: Re: Flaw in SocketStream>>peek detected)

Igor Stasenko siguctua at gmail.com
Fri Jan 15 01:23:07 UTC 2010


2010/1/15 Andreas Raab <andreas.raab at gmx.de>:
> Igor Stasenko wrote:
>>
>> My first attempt to fix it was also flawed. Thanks to Stephan for
>> pointing it out. (You can read our discussion here:
>> http://code.google.com/p/pharo/issues/detail?id=1813)
>>
>>
>> I hope this time its fixing it! :)
>
> From what I can tell, the changes are completely equivalent. Could you
> please write a test that illustrates what you think was wrong with the
> previous version? Attached are some tests that (I think) show that there's
> really no difference in these versions.
>

| s|
s:= (SocketStream openConnectionToHostNamed:  'google.com' port: 80) .
s shouldSignal: true.
s peek

" the above should endup with timeout exception ,
but following one should hang indefinitely"

| s|
s:= (SocketStream openConnectionToHostNamed:  'google.com' port: 80) .
s shouldSignal: false.
s peek

same for the #next.

> Cheers,
>  - Andreas
>

-- 
Best regards,
Igor Stasenko AKA sig.



More information about the Squeak-dev mailing list