JKRhb / dtls2

A DTLS library for Dart based on OpenSSL.
MIT License
3 stars 0 forks source link

Network is unreachable treated as DTLSException ? #71

Closed Ifilehk closed 1 year ago

Ifilehk commented 1 year ago

Back again :-)

Having trouble to catch Network is unreachable exception.

As I can see _abortHandshake(DtlsException("Network is unreachable")); it is treated as DtlsException and I am not managing to catch it.

Would it not be preferable to throw it as a SocketException like thrown by the underlying system?

JKRhb commented 1 year ago

Oh, sorry, that was a mistake from my side 😅 I opened #72 as a fix and will release a new version shortly :)

JKRhb commented 1 year ago

Just release version 0.14.1 with the fix, sorry for the inconvenience!

Ifilehk commented 1 year ago

No problem :-)