scryer-prolog icon indicating copy to clipboard operation
scryer-prolog copied to clipboard

Do not throw exception on close/1 errors

Open aarroyoc opened this issue 3 years ago • 2 comments

This PR https://github.com/mthom/scryer-prolog/pull/1051 removed the panic on closing a non-existing stream, throwing a Prolog exception instead. However, this also doesn't seem to be the right approach, since it is operating system dependant as seen here: https://github.com/mthom/scryer-prolog/issues/1133

This PR will ignore every error generated by close/1 regarding TcpStream and TlsStream

aarroyoc avatar Dec 19 '21 18:12 aarroyoc

See 7.10.2.12 Options on stream closure, maybe it would be better to add there something.

UWN avatar Dec 19 '21 18:12 UWN

I should start searching for my ISO Prolog copy

aarroyoc avatar Dec 20 '21 19:12 aarroyoc