> Attached file is simple echo server and I did test with nc(netcat)
> like this;
> 
> echo -e "hello\r\n" | nc localhost 8123
> 
> again, which returns "hllo" instead of correct "hello".

This was caused by the changes to Stream>>#copyFrom:.  It is fixed
as in this patch:

--- orig/tcp/Buffers.st
+++ mod/tcp/Buffers.st

@@ -111,7 +111,7 @@ bufferContents
     "Answer the data that is in the buffer, and empty it."
     | contents |
     self basicAtEnd ifTrue: [ ^self species new: 0 ].
-    contents := self copyFrom: ptr to: endPtr.
+    contents := self collection copyFrom: ptr to: endPtr.
     endPtr := ptr - 1. "Empty the buffer"
     ^contents
 !

Paolo


_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to