In the case of a failed connection because of a “ConnectionRefused” error, we are retrying the connection attempt. If (sx.ErrorCode = 10061) //connection refused Protected virtual bool ShouldRetr圜onnection (Exception ex, int attemptNumber) In our codebase, we had the following code which was adopted from Mono Debugger Libs and helps us communicate with debugger processes: To ensure the reliability of the whole application, it’s important to properly handle all the socket errors. Rider consists of several processes that send messages to each other via sockets. How ListSeparator Depends on Runtime and Operating System.How Sorting Order Depends on Runtime and Operating System.How Socket Error Codes Depend on Runtime and Operating System. ![]() ![]() There’s too much to share in one post, so we will make this into a series of posts. By sharing our experiences, we hope to help out those who are in the same boat. This post is the first part of a blog post series that covers different technical challenges that we had to resolve during the migration of the Rider backend process from Mono to. Writing cross-platform socket error handling.
0 Comments
Leave a Reply. |