make filter sockets for data non-blocking.
fix potential hang reported by Jason Barbier.
Merge branch 'master' into portable