www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15770] New: SocketSet.add OutOfMemoryError on Posix

https://issues.dlang.org/show_bug.cgi?id=15770

          Issue ID: 15770
           Summary: SocketSet.add OutOfMemoryError on Posix
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: andre s-e-a-p.de

While adding a not alive socket to a SocketSet using method add() there is
following error:

ERR core.exception.OutOfMemoryError src/core/exception.d(679): Memory
allocation failed

In some scenarios it is quite hard to find the root cause (not alive socket).
An exception like InvalidSocket instead would be quite nice.

Tested on linux.

--
Mar 05 2016