The Trunk: Network-cmm.151.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Network-cmm.151.mcz

commits-2
Chris Muller uploaded a new version of Network to project The Trunk:
http://source.squeak.org/trunk/Network-cmm.151.mcz

==================== Summary ====================

Name: Network-cmm.151
Author: cmm
Time: 24 September 2014, 2:41:23.349 pm
UUID: 74ec9de8-3417-462b-9a74-005dfc2e2130
Ancestors: Network-nice.150

After closing and destroying a SocketStream, reset its buffers back down to 4k in case they had grown to many megabytes.

=============== Diff against Network-nice.150 ===============

Item was changed:
  ----- Method: SocketStream>>close (in category 'control') -----
  close
  "Flush any data still not sent
  and take care of the socket."
 
  self flush.
+ socket closeAndDestroy: 30.
+ "Reclaim memory consumed by possibly very large buffers."
+ self resetBuffers!
- socket closeAndDestroy: 30!