From: http://synapse.ararat.cz/doku.php/public:howto:connecttimeout
Exists two possible workarounds: Call Connect in non-blocking mode. (ugly ) Raise helper thread and after timeout try to close socket handler from this thread. (it is ugly too ) "Ugly" is not a good solution for a very important feature, with strong performance and security repercussions, and that has come up on this mailing list before. (Heck, one could easily DOS (denial-of-service) a program relying on this lib by submitting numerous URLs with connection problems, that would tie up all threads...) Someone recently posted code that worked well for them for several years. I had intended to get involved in that discussion and testing, as it's a very important subject for us, but could not spare the time. I still don't have the time, but would be very willing to join in a common effort to test and or adapt whatever's necessary to get that feature into Synapse. Yup, back on October 23, Alexander Bauer posted code (a modified TBlockSocket.Connect) that he'd been using for a long time. I was hoping that someone (more knowledgeable than myself, before I studied his solution and jumped into the subject) was going to confirm or deny that his solution was working for them, but I don't think I ever saw such a response. (Not all Synapse mailing list messages seem to get through, so maybe I missed some?) Hopefully, some of those who were very hot on this subject back then were able to solve the problem! (If you worked on this and did NOT reach a solution, it would still be very useful if you told us what didn't work!) If not, maybe we can form a group to pursue the subject?? (Max Terentiev, Luca Olivetti, Alexander, Lukas ?) Thanks for considering this. ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public
