Éric Fleming Bonilha wrote:
> I´m having a strange problem with ICS
> On our architecture we use TWSocket client components on separated
> threads because of lengthy operations so our main thread will not be
> blocked, but we are having such a strange problem, when our software
> tries to connect to an invalid host name (like the string "test" or
> "abcabcabc") it will block the main thread for some seconds until the
> component receives the reponse of invalid host, is this behaviour
> normal to block the main thread?
No, method DnsLookUp() works asynchrone, so even multiple concurrent
lookups in the same thread won't block.
But internally winsock serializes DNS lookups, that even happens when
the lookups are executed in multiple threads.
Arno Garrels [TeamICS]
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be