Tweaking socket polling