[Issue 5177] New: std.socketstream's close() should call super.close()

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 5 22:48:26 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=5177

           Summary: std.socketstream's close() should call super.close()
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: metalcaedes at gmail.com


--- Comment #0 from Daniel Gibson <metalcaedes at gmail.com> 2010-11-05 22:47:27 PDT ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list