mongoid/moped — pull request #77 by spiegela (2012-09-24 01:13:13+00:00)
Title: New Linger Socket Option doesn't work in JRuby

I just happened to be testing out something in moped-head, and noticed this. Bunches of specs were failing in JRuby 1.6.7.2 & 1.6.8.

From what I can tell, this commit is the correct method for setting the linger option in JRuby since the Socket::Option class doesn't exist.

I tested against all the specs other than cluster & authenticate, and it looks good to me.

-Aaron