Backport the Socket.Poll() fix from 03/10/2013 to the 2.0.12 branch.