Re: [Pharo-project] [squeak-dev] Re: Flaw in SocketStream>>peek detected
Jan. 14, 2010
9:23 a.m.
Hi all! I presume this bug is also in Pharo so I CCed. Andreas Raab wrote:
Igor Stasenko wrote:
The fix is:
--- ^inBuffer at: lastRead +++ ^inBuffer at: lastRead+1
but i'm not sure if something else won't break because of it ;)
Extremely unlikely. It's pretty clear that peek is wrong here as illustrated by:
stream := SocketStream openConnectionToHostNamed: 'www.google.com' port: 80. stream nextPutAll:('GET / HTTP/1.0\\' copyReplaceAll: '\'with: String crlf). stream flush. stream peek.
This blows up and clearly it shouldn't.
Yup, just fix it! :) Sorry for the bug guys. regards, Göran
6042
Age (days ago)
6042
Last active (days ago)
1 comments
1 participants
participants (1)
-
Göran Krampe