.NET Remoting: Getting underlying socket?

Posted by Alan on Stack Overflow See other posts from Stack Overflow or by Alan
Published on 2010-06-17T20:59:49Z Indexed on 2010/06/17 21:03 UTC
Read the original article Hit count: 231

Filed under:
|
|

Hi,

I'm writing a light remoting app to assist in debugging a problem with remoting communication. This app mimics much of what a larger application does:

Periodically sends a heartbeat to another peer application, and periodically verifies that a heartbeat has been received within some time threshold.

What we're seeing is in our big application, the heartbeats seem to get dropped. One peer will go for long periods of time without seeing heartbeats from another peer, until the peer that is "dead" is restarted. The big application is responsive in all other ways. We believe it has something to do with the network setup. We were able to repro the problem locally, and fixed it by making some configuration changes to our test environment.

To help our customer diagnose the issue, the mini-remoting app needs to log as much information as possible.

So, is there a way to get the underlying socket for the remoting connection? I'm aware that I could write a custom sink for this, but I'd like to keep the actual remoting process as close to what is implemented in the big app as possible.

Also as an aside, any ideas why the big-app might be "dropping" heartbeats?

© Stack Overflow or respective owner

Related posts about c#

Related posts about sockets