JKRhb / dtls2

A DTLS library for Dart based on OpenSSL.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Network is unreachable treated as DTLSException ?

Ifilehk opened this issue · comments

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?

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

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

No problem :-)