Re: Long Time Dealy When getting Vended Object
Re: Long Time Dealy When getting Vended Object
- Subject: Re: Long Time Dealy When getting Vended Object
- From: Kiran Kumar S <email@hidden>
- Date: Thu, 23 Apr 2009 10:35:09 +0530
These are the lines of code i got blocked
1. When Remote Machine is not in Network
553 -[PXDistributedObjectsClient
serverObjectWithReestablishingConnection]
553 -[PXDistributedObjectsClient serverObject]
553 _CF_forwarding_prep_0 553 ___forwarding___
553 -[NSDistantObject forwardInvocation:]
553 -[NSConnection sendInvocation:internal:]
553 -[NSConnection sendInvocation:internal:]
On 22-Apr-09, at 3:33 PM, Kiran Kumar S wrote:
Thanks, Ken for your Reply,
Usually we will get time out exception when trying to get vended
object that is not available but in the below case i use to get same
exception after a long long delay and some times My app crashes
Thanks
SkiranKumar
On 22-Apr-09, at 1:52 PM, Ken Thomases wrote:
On Apr 22, 2009, at 1:14 AM, Kiran Kumar S wrote:
Really going mad, it is taking long time response when i am
trying to get vended Object from the remote machine which doesn't
exist in the network. .
I am facing same long time delay(more than 60 sec) when i am
trying to get vended object from the remote machine which gone to
sleep.
Below is the code
[...]
On which line is the code blocking? You can find out by sampling
the process from Activity Monitor or breaking into the process with
the debugger.
The delay you're seeing is probably the TCP connection timeout. On
most systems, it will take about 9 minutes for TCP to give up all
attempts to connect and timeout. I would hope that NSConnection
would implement its own timeout mechanism as an alternative to
allowing TCP to exhaust itself.
As near as I can tell from reviewing the documentation, the reply
timeout should govern the -rootProxy method. Since you're setting
that, then I'm not sure why it's not working.
This might be a bug, which you should file at <http://bugreport.apple.com
>.
Regards,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden