On Thu, 06 Feb 2014 14:04:37 +0100, Sönke Ludwig wrote:

You need to have an existing FD (a socket of some kind) that is set to
non-blocking mode.

Why it is important to have non-blocking socket in this case? I accidentally tried to use blocking socket and didn't seen difference.