We should assert that the BaseSocket was closed when deinit() is called. (#26)
We should assert that the BaseSocket was closed when deinit() is called. (#26)

Motivation:

Leaking a fd is bad we should at least assert that we not do.

Modifications:

Add assert in deinit so we crash in debug mode if we leak a socket.

Result:

Code is more robust.
apple/swift-nio,apple/swift-nio,apple/swift-nio,apple/swift-nio,apple/swift-nio