Discussion:
Reg TCPIP Connection Timout Socket Exception
(too old to reply)
Sripraneeth
2008-08-27 11:20:34 UTC
Permalink
Hi,

When I try to do a remoting call where server network is down. I am getting
exception saying like - "A connection attempt failed because the connected
party did not properly respond after a period of time, or established
connection failed because connected host has failed to respond". This is
fine.

But I am getting exception only after 45 Seconds. It actually varies from
30 - 60 seconds on different machine.

This is not acceptable to our product as this timeout delay is causing the
performance issues in our product.

Can anyone give information how can I reduce this Timeout Exception delay
period.

I tried by providing the TCPIPChannel Properties like

IDictionary properties = new Hashtable();
properties.Add("port", 9000);
properties.Add("timeout", (uint)5000);
properties.Add("connectionTimeout", (uint)5000);
properties.Add("name", System.Guid.NewGuid().ToString());


clientChannel = new TcpClientChannel(properties, null);
ChannelServices.RegisterChannel(clientChannel,false);

Still no use .

Any help will be greatly appreciated.

Thanks & Regards
Sripraneeth Nara.
David Talley
2008-09-26 20:11:01 UTC
Permalink
I'm experiencing the same issue. It seems to me that properties["timeout"]
only gets used when the connection to the remote service is successful. That
timeout setting only kicks in if the remote service takes to long to process
your request. However, if the service is not listening on the port (it got
shut down for some reason), than the timeout doesn't seem to apply. The
properties["connectionTimeout"] setting didn't do anything at all for me when
I tried it.
Post by Sripraneeth
Hi,
When I try to do a remoting call where server network is down. I am getting
exception saying like - "A connection attempt failed because the connected
party did not properly respond after a period of time, or established
connection failed because connected host has failed to respond". This is
fine.
But I am getting exception only after 45 Seconds. It actually varies from
30 - 60 seconds on different machine.
This is not acceptable to our product as this timeout delay is causing the
performance issues in our product.
Can anyone give information how can I reduce this Timeout Exception delay
period.
I tried by providing the TCPIPChannel Properties like
IDictionary properties = new Hashtable();
properties.Add("port", 9000);
properties.Add("timeout", (uint)5000);
properties.Add("connectionTimeout", (uint)5000);
properties.Add("name", System.Guid.NewGuid().ToString());
clientChannel = new TcpClientChannel(properties, null);
ChannelServices.RegisterChannel(clientChannel,false);
Still no use .
Any help will be greatly appreciated.
Thanks & Regards
Sripraneeth Nara.
Loading...