all groups > dotnet remoting > april 2005 >
You're in the

dotnet remoting

group:

custom sink channels and closing connections.


custom sink channels and closing connections. lloyd
4/29/2005 6:26:06 PM
dotnet remoting:
i'm using custom sink channels to encrypt (among other things) my remoting
tcp channels, but i've noticed that for every call, even though its a client
activated object, it opens a new tcp connection and leaves it open until i
run out of available sockets at around 4000 connections (8000 showing
ESTABLISHED in netstat). The exception i'm getting is

An unhandled exception of type 'System.Net.Sockets.SocketException' occurred
in mscorlib.dll

Additional information: An operation on a socket could not be performed
because the system lacked sufficient buffer space or because a queue was
full


i'm using the Microsoft.Samples.Runtime.Remoting.Security (which i do
understand is not supported but thats not to say no one has done it) and
even its CAO demo has the same problem. If i dont use it (just comment out
the client provider in my App.config) it works like a charm with just two
tcp connections. Unfortunately I have no idea why its creating a new tcp
for every call rather than reusing one like the normal tcpchannel. perhaps
something to do with the 3 way handshake it has to do? as is probably
apparent i'm a bit over my head on this one, my understanding is fairly
limited so i'm having a heck of a time, been staring at this for about 9
hours today.

anyone know how to fix this, or even where I should be looking?
alternatively, are there any similiar libraries for
encryption/impersonation? thanks as always.

Lloyd Christopher
SLOW30

Re: custom sink channels and closing connections. Henry Willsun
5/3/2005 12:00:00 AM
Hi,

you can try third-party channels like genuine channels
(www.genuinechannels.com).

Henry.

[quoted text, click to view]

Re: custom sink channels and closing connections. lloyd
5/3/2005 9:17:32 AM
Thanks, have you had any experience with these guys? or has anyone else
reading this? if it does what its supposed to thats almost certainly a
better solution as i've wasted alot more than $99 sitting here with winpcap
trying to figure out where the error in that other code is.

Lloyd
SLOW30

[quoted text, click to view]

Re: custom sink channels and closing connections. Henry Willsun
5/4/2005 12:00:00 AM
I discovered them not long ago, so have studied only their samples and
articles (looks very interesting). Also there are a number of posts here in
this group where people talk about this product.



Henry.



[quoted text, click to view]

Re: custom sink channels and closing connections. lloyd
5/17/2005 12:00:00 AM
After going over the documentation I purchased it and its pretty sweet. I
have everything working perfect, sspi etc and none of the problems I had
before. $99 well spent. Figured I would post that this worked for any
others running into my problems from before..

[quoted text, click to view]

AddThis Social Bookmark Button