Only one timer is enough for all your timeouts. You could implement this way: You timer would trigger each 10 seconds (or any other interval you like). Your timer event handler will check a list of timeout actions. Each timeout action could be a time value to check against current time and an event (TNotifyEvent or custom event you define for the purpose) to call when timeout is detected.
-- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be ----- Original Message ----- From: "Me" <[EMAIL PROTECTED]> To: "ICS support mailing" <twsocket@elists.org> Sent: Saturday, December 17, 2005 2:30 PM Subject: [twsocket] HTTPCLI TimeOut implementation help :-( > Hi > Im trying to make basic proxy checker based on THTTPCli component, > but have problem with timeout. Would like to have 2 timeouts - > connection timeout and verification timeout. So i made something > like this... > > Made one timer that is being run before .GetAsync (connection > timeout) and one in OnSessionConnect event (verification timeout). > > And what should i do in OnTimer event? > HTTPCli.CloseAsync / Close doesnt seems to call OnRequestDone... any > idea? > > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://www.elists.org/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be