From 9489c2fa58964afb57ef941887dddfeebc76704e Mon Sep 17 00:00:00 2001 From: HD Moore Date: Fri, 8 Oct 2010 04:55:06 +0000 Subject: [PATCH] Note on thread safety git-svn-id: file:///home/svn/framework3/trunk@10597 4d416f70-5f16-0410-b530-b9f4589650da --- lib/rex/socket.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/rex/socket.rb b/lib/rex/socket.rb index 231ee49e78..fdc9315d68 100644 --- a/lib/rex/socket.rb +++ b/lib/rex/socket.rb @@ -463,6 +463,8 @@ module Socket # on Windows where ::Socket.pair is not implemented. # Note: OpenSSL requires native ruby sockets for its io. # + # Note: Even though sub-threads are smashing the parent threads local, there + # is no concurrent use of the same locals and this is safe. def self.tcp_socket_pair lsock = nil rsock = nil