Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Set UDP Client socket to disregard ICMP errors and forcibly disconnect. #315

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

phalasz
Copy link
Contributor

@phalasz phalasz commented Aug 28, 2019

After a discussion on discord it was discovered that the ReadThread could encounter a Connection Reset Socket exception while trying to connect to a server that is not running.

The expected behaviour here would be to trigger a connectAttempFailed event, but the exception will close the socket and the loop checking for the connection attempts will be terminated early without firing the event.

Thank you for @andreivreja for finding the possible solution.

@phalasz phalasz requested a review from BrentFarris August 28, 2019 21:26
@phalasz phalasz added the bug label Aug 28, 2019
@phalasz phalasz force-pushed the fix/readthread-exception-on-connect branch from d6e020d to 2d3aae7 Compare August 28, 2019 23:23
@phalasz phalasz force-pushed the fix/readthread-exception-on-connect branch from 2d3aae7 to 5c4f9d0 Compare August 28, 2019 23:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant