NetTalk Central
The Rest Of NetTalk => The Rest - Ask For Help => Topic started by: Alberto on March 20, 2019, 01:17:04 PM
-
Im posting a WS using NetWebClient but sometimes when the server does not respond it takes mins and mins to stop.
Any way to set a timeout?
-
yes there is a timeout property.
net.InActiveTimeout
defaults to 60 seconds.
-
Ok, thanks, and any way to detect this timeout was fired to show a message?
-
Ive looked at InActiveTimeout in the docs and didnt found it.
How to set it to 30 secs?
-
>> How to set it to 30 secs?
net.InActiveTimeout = 3000
-
And when the 30 secs are over and the ws dows not responds, what is the method fired?
ErrorTrap?
How can I trap this timeout?
-
On the client side a NET:SimpleIdleConnection will be sent to the .Process method.
eg
case self.Packet.PacketType
! ------------------------------
of NET:SimpleIdleConnection
! ------------------------------
self.abort()
end