From: Yukihiro Matsumoto Date: 2010-12-08T10:52:42+09:00 Subject: [ruby-core:33631] Re: [Ruby 1.8-Bug#4132] Socket.close attempting to close the socket twice Hi, In message "Re: [ruby-core:33630] [Ruby 1.8-Bug#4132] Socket.close attempting to close the socket twice" on Wed, 8 Dec 2010 10:18:22 +0900, Claudio Villalobos writes: | |Since file descriptors are reused after closing, wouldn't there be an edge case where that file descriptor could have been assigned to another socket before the second close had been executed? On 1.8 (and mostly on 1.9 too), the execution is protected from multithreading, so that we don't have to worry about concurrency here. matz.