Bug 5177 – std.socketstream's close() should call super.close()

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-11-05T22:47:00Z
Last change time
2015-06-09T05:11:50Z
Assigned to
nobody
Creator
metalcaedes

Comments

Comment #0 by metalcaedes — 2010-11-05T22:47:27Z
std.socketstream's close just closes the socket, but not the stream, i.e. setting "readEOF = prevCr = isopen = readable = writeable = seekable = false;" like std.stream.Stream does. This sucks because even when you close() your socketstream, isOpen() still returns true. This could easily be fixed by calling "super.close();" before "sock.close();" in std.socketstream.close() Thanks, - Daniel
Comment #1 by dlang-bugzilla — 2011-08-23T23:36:34Z
Comment #2 by justin — 2014-06-06T16:56:01Z
Pull request was merged.