mitzi 43 Posted January 10, 2020 hm, i'm trying, but despite the fact I have BUILTIN_TIMEOUT defined, property TimeoutConnect has no effect 😞 What is scale? Seconds or milliseconds? Share this post Link to post
Fr0sT.Brutal 900 Posted January 13, 2020 On 1/10/2020 at 5:45 PM, mitzi said: hm, i'm trying, but despite the fact I have BUILTIN_TIMEOUT defined, property TimeoutConnect has no effect 😞 What is scale? Seconds or milliseconds? If you define timeout, you'll have OnTimeout event triggered, that's all. You'll have to add an action (i.e. close the socket) by yourself Share this post Link to post
mitzi 43 Posted January 13, 2020 Thanks, that's it. And timeout is defined in seconds or milliseconds? Share this post Link to post
Fr0sT.Brutal 900 Posted January 13, 2020 Msecs IIRC but it was quicker to check that by yourself 😉 Share this post Link to post
mitzi 43 Posted January 13, 2020 Of course I did. But when i set TimeoutConnect either to 5 or 5000 OnTimeout event was triggered after 3-4 seconds after Connect was called regardless of TimeoutConnect value. So I'm a little confused. Share this post Link to post
Fr0sT.Brutal 900 Posted January 13, 2020 Weird, I have timeouts working OK. Socket.TimeoutConnect := Settings.ConnTimeout*MSecsPerSec; Share this post Link to post