rodion-m / dio_smart_retry

Flexible retry library for Dio. A next generation of an abandoned dio_retry package.
MIT License
88 stars 45 forks source link

Handling 'Connection reset by peer' errors #45

Open adminant opened 1 month ago

adminant commented 1 month ago

Is it possible to handle 'Connection reset by peer' and resend dio request after this error? This error doesn't have a code and is returned back from network stack as a SocketException with message. Unfortunately it is hard to catch it for debugging.