www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: metalcaedes gmail.com



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: -------
Nov 05 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5177


Vladimir Panteleev <thecybershadow gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow gmail.com



23:36:34 PDT ---
https://github.com/D-Programming-Language/phobos/pull/211

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