Make sockets non-blocking

Change-Id: I8ca23d20616c45125c88ebe6e3848e0c20bc98a2