From: Christian Kerth Date: 2008-07-15T23:41:33+09:00 Subject: "Address already in use" Error with net/http Hey! I'm downloading a large number of files via net/http GET Requests using 5 Threads. Each Thread does something like this: req = Net::HTTP::Get.new(url.path) conn = Net::HTTP.new(url.host, url.port) res = conn.start { |http| http.request(req) } While the threads are running i sometimes get the Error WSAEADDRINUSE 10048 "Address already in use" (i have a German version of Windows XP SP2. There the exact message is: Normalerweise darf jede Socketadresse (Protokoll, Netzwerkadresse oder Anschluss) nur jeweils einmal verwendet werden. - connect(2)) It seems like my code makes Windows run empty on available ports for my requests. Any solutions? Thx -- Posted via http://www.ruby-forum.com/.