Artifact d088ca13d0c93d8f2ee94866f296cc5c7a8aa95000d7998729bb669383cf95ac:
- File
src/OFTCPSocket.m
— part of check-in
[1f7898f109]
at
2009-12-17 10:53:23
on branch trunk
— Further improve OFTCPSocket.
Only use getaddrinfo() if it's thread-safe - it does not make much
sense to allow getaddrinfo() if it's not thread-safe, as then its
biggest advantage to gethostbyname() is gone.Also, copy the result from gethostbyname() so we can release the lock
before connecting - this should greatly improve the speed when trying
to connect to multiple hosts without a thread-safe getaddrinfo(). (user: js, size: 7681) [annotate] [blame] [check-ins using]
A hex dump of this file is not available. Please download the raw binary file and generate a hex dump yourself.