Tried to make the socket non blocking through ioctl() sys call